|
|
|
|
|
by pallinder
4726 days ago
|
|
"If you’re using JSON and your JSON is a mix of types, goooooood luck. You’ll have to create a custom struct that matches the format of your JSON blob, and then Unmarshall the raw json into an instance of your custom struct. Much more work than just obj = json.loads(json_blob) like we’re used to in Python land." Could just load it into a map[string]interface{} and then just make sure he does type assertion on the value before using it. |
|