converting python json to javascript object json code example Example: python object to json jsonStr = json.dumps(myobject.__dict__)