Add on your changes to the JSON section

Hey @royka! Thanks again for writing on JSON parsing and generation in Python.

I tried to flesh out some of your examples and incorporate some of the suggestions in your original PR. Let me know what you think.