A JSONObject text must begin with '{' error

后端 未结 4 2292
独厮守ぢ
独厮守ぢ 2021-02-19 00:54

I have this JSON coming from one of our REST service:

[
    \"{\\\"category_name\\\":[\\\"Industry Components\\\"],\\\"categoryId\\\":[1]}\",
    \"{\\\"category         


        
4条回答
  •  难免孤独
    2021-02-19 01:19

    JSON Object follows the following Structure:

    {
     "array": [
    {
        color: "red",
        value: "#f00"
    },
    {
        color: "green",
        value: "#0f0"
    }
    ]
    }
    

    JSON Array follows the following Structure:

    [
     { "firstName":"John" , "lastName":"Doe" }, 
     { "firstName":"Anna" , "lastName":"Smith" }, 
     { "firstName":"Peter" , "lastName": "Jones" }
    ]
    

提交回复
热议问题