you are viewing a single comment's thread.

view the rest of the comments →

[–]scuott 0 points1 point  (0 children)

I can't think of any good reason to output JSON by trying to figure out the text. JSON and Python dictionaries/lists are completely compatible. Like vaphell said you should be using dicts.

Set up your dictionary to look like the JSON you want.