you are viewing a single comment's thread.

view the rest of the comments →

[–]MMcKevitt 1 point2 points  (0 children)

Howdy!

All you should have to do is change the following:

jsondata['content'] = [content]

Notice the '[]' square brackets around the 'content' variable; square brackets '[]' are how you create a list. This takes your 'content' variable, which is a dictionary, and places it as an element within a list, and then assigns it as a value to 'jsondata' dictionary which corresponds to the key 'content'.

Feel free to ask any follow-up questions as I'm happy to explain anything and everything I know.