how to create a nested json in java

前端 未结 2 1836
滥情空心
滥情空心 2021-01-28 13:00

I am having a problem in making a json in java. below is the JSON which I have to create through java code.

{\"status\":\"0\",
\"Response\":{ 
    \"abc\":[
            


        
2条回答
  •  遇见更好的自我
    2021-01-28 13:57

    Your JSON object has a wrong syntax: An object must contain a list of field/value pairs and is enclosed with braces {}, an array is a list of values enclosed with angle brackets [].

提交回复
热议问题