I am sending a request to an external WDSL service, which for some reason returns a huge object. I am connecting using SOAPpy
, and I would like to parse the result to JSON. However I am getting a lot of objects within the object, like this.
<SOAPpy.Types.structType incident at 53129728>:
Is there any way I can parse this object with SOAPpy? Is my first time using this SOAPpy.
This is what worked for me:
pythonObject = SOAPpy.Types.simplify(soapObject)
jsonObject = json.dumps(pythonObject)