http://docs.python.org/2/library/json.html
This is as easy as it gets. It returns a fucking dictionary with shit on it. If you can't even handle that, please go back to /g/ and don't come back til you've read SICP.
>>11
Data that's not uniform in structure is just a shit choice.
If the data isn't properly structured when you get it, fix that first, before you try to query it.
Name:
Anonymous2013-01-07 20:23
>>15
My concern was that programming around the specific structure of the data was dangerous.
Name:
Anonymous2013-01-07 22:52
>>16
If you want your code to be able to adapt to changes in the JSON structure, you can write wrapper types for each structure with getter functions. It might seem shitty and it is shitty but xpath can be dangerous in other ways. Also you could use xpath with json if you wanted to, although there would need to be a way to handle json's arrays.