无法读取JSON:意外字符('['(代码91)):期望冒号分隔字段名称和值

时间:2014-12-16 09:03:31

标签: json

我的Json代码

{
    "referenceId":"referenceId0",
    "operation":"UPDATE",
    "circleList" [  
        {
            "circleCode":"RJ/OR/AP", 
            "circleName":"Rajasthan/Orissa/Andhra Pradesh"
        },
        {
            "circleCode":"RJ/OR/AP", 
            "circleName":"Rajasthan/Orissa/Andhra Pradesh",
        }
    ]
}

error message : {
   "responseCode": "1",
   "message": "System error: Could not read JSON: Unexpected character ('[' (code 91)): was expecting a colon to separate field name and value\n at [Source: org.apache.catalina.connector.CoyoteInputStream@157ba3f; line: 4, column: 16]; nested exception is org.codehaus.jackson.JsonParseException: Unexpected character ('[' (code 91)): was expecting a colon to separate field name and value\n at [Source: org.apache.catalina.connector.CoyoteInputStream@157ba3f; line: 4, column: 16]"
}

1 个答案:

答案 0 :(得分:3)

JSON无效,此处

"circleList" [ 需要添加:

应该是

"circleList": [