Converting JSON to XML

后端 未结 6 1066
孤街浪徒
孤街浪徒 2020-12-10 02:58

I trying to convert JSON output into XML. Unfortunately I get this error:

JSON root object has multiple properties. The root object must have a single

6条回答
  •  离开以前
    2020-12-10 03:37

    Your shared JSON is invalid please go through http://jsonformatter.curiousconcept.com/ and validate your JSON first.

    Yourt JSON should look like:

    {
       "id":"108013515952807",
       "posts":{
          "data":[
             {
                "id":"108013515952807_470186843068804",
                "created_time":"2013-05-14T20:43:28+0000"
             },
             {
                "message":"TEKST",
                "id":"108013515952807_470178529736302",
                "created_time":"2013-05-14T20:22:07+0000"
             }
          ]
       }
    }
    

提交回复
热议问题