News for hackers. Stuff that matters.
Re:What Python developers need to know before migrating to Go by pallinder on Monday July 08, 2013 @07:13PM (#6010026)
"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.

There are no comments on this comment yet.