search

Home  >  Q&A  >  body text

json格式问题

{
    "obj": {
        "code": 200,
        "msg": "success"
    }"attrubite": {
        {
                "id": "",
                "parentId": "",
                "categoryName": "全部分类",
                "count": "3"
            },
{
                "secondCategory": [
                    {
                        "id": "1",
                        "parentId": "1",
                        "categoryName": "全部分类",
                        "count": "3"
                    },
                    {
                        "id": "2",
                        "hasChild": "false",
                        "parentId": "1",
                        "categoryName": "冷鲜",
                        "count": 3
                    }
                ],
                "id": "1",
                "hasChild": "true",
                "parentId": "",
                "categoryName": "进口食品",
                "count": 3
            },
       ]
   }
    }
}

Error: 在第5行发生解析错误 :...sg": "success" }"attrubite": {

此处缺少'EOF', '}', ',', ']'字符, 实际上确是一个 'STRING'这是什么意思?


高洛峰高洛峰2929 days ago3042

reply all(2)I'll reply

  • 欧阳克

    欧阳克2016-11-10 17:08:37

    少个逗号啊

    这都没看出来


    reply
    0
  • 欧阳克

    欧阳克2016-11-10 17:08:22

    贴的格式很奇怪,但是不是缺少一个逗号

    "success" } , "attrubite": {


    reply
    0
  • Cancelreply