Is it possible to have nested array json?

后端 未结 2 1096
一整个雨季
一整个雨季 2021-01-29 01:35

I\'m kinda new with json. So I want to make an array value inside a value of an array like below.

{
    \"id\": 0,
    \"title\": \"LEVEL\",
    \"value\": [10[2         


        
2条回答
  •  隐瞒了意图╮
    2021-01-29 02:26

    {
    "id": 0,
    "title": "LEVEL",
    "value": [10, [2, 3, 5], 1]
    

    }

    Option2:

        {
        "id": 0,
        "title": "LEVEL",
        "value": [10, {
            "someKey": [2, 3, 5]
        }, 1]
    }
    

    Option3:

           {
        "id": 0,
        "title": "LEVEL",
        "value": [10, {
            "someKey": [2, {
                "someKey": [9, 1, 1]
            }, 5]
        }, 1]
       }
    

提交回复
热议问题