Adding a child node to a JSON node dynamically
- by Sai
I have to create a nested multi level json depending on the resultset that I get from MYSQL. I created a json object initially. Now I want to add child nodes to the already child nodes in the object.
d = collections.OrderedDict()
jsonobj = {"test": dict(updated_at="today", ID="ID",…