Categories
Python

Handling JSON in Python

On php, I just use json_encode() and json_decode() to handle JSON data with ease. Python has a built in module named “json” for the same purpose. Here’s the link for the official documentation: http://docs.python.org/library/json.html 🙂 The documentation has pretty examples. Still, I wanted to try things out by myself. I used Python to parse the JSON output of a certain Yahoo! Pipes feed :

Output:

2 replies on “Handling JSON in Python”

Just have to say thank you because I have spent few weeks trying to parse information from my JSON file and your example helped me realise I was working with wrong entries! Thank you so much!

Comments are closed.