Objectjson - JSON to nested object.


/ Published in: Python
Save to your folder(s)

Makes working with JSON data, in my eyes, easier in Python.

Instead of

json_data['key']['key']['key']

Do

json_data.key.key.key

This can also be modified to work the same way with dict types.

URL: http://ideone.com/O6KGB3

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.