Transforming string output to JSON
Question: I'm getting some data from an external system (Salesforce Marketing Cloud)
over API and I'm getting the data back in the format below:

    
    
    Results: [(List){
       Client =
          (ClientID){
             ID = 113903
          }
       PartnerKey = None
       CreatedDate = 2013-07-29 04:43:32.000073
       ModifiedDate = 2013-07-29 04:43:32.000073
       ID = 1966872
       ObjectID = None
       CustomerKey = "343431CD-031D-43C7-981F-51B778A5A47F"
       ListName = "PythonSDKList"
       Category = 578615
       Type = "Private"
       Description = "This list was created with the PythonSDK"
       ListClassification = "ExactTargetList"
     }]
    

It's tantalisingly close to JSON, I'd like to format it like a JSON file so
that I can import it into our database. Any ideas of how I can do this?

Thanks


Answer: To convert your array, you could use var jsonString =
JSON.stringify(yourArray);

