I have two JSON objects. One is python array which is converted using json,dumps() and other contains records from database and is serialized using json serializer. I want t
Not sure if I'm missing something, but I think this works (tested in python 2.5) with the output you specify:
import simplejson finalObj = { 'obj1': obj1, 'obj2': obj2 } simplejson.dumps(finalObj)