JSON 错误 - 预期为“EOF”、“}”、“,”、“]”,但实际为“{”

JSON 错误 - 预期为“EOF”、“}”、“,”、“]”,但实际为“{”

我有一个很大的 json 文件,但不知道它显示了一些错误......

{
  "_index": "ttmnt",
  "_type": "********ils",
  "_id": "********DC",
  "_score": 1,
  "_source": {
    "_id": "********DC",
    "policyNo": "********461",
    "displayPolicyNo": "********461",
    "email": "********@GMAIL.COM",
    "name": "********",
    "mobileNo": "********",
    "misOwner": "********sh.w@t********t.com",
    "registrationNo": "dd578",
    "folderNo": "dddddYDC"
  }
}
{
  "_index": "ttmnt",
  "_type": "********c",
  "_id": "********DC",
  "_score": 1,
  "_source": {
    "_id": "********DC",
    "policyNo": "********21s",
    "displayPolicyNo": "s008461",
    "email": "****[email protected]",
    "name": "********HAL",
    "mobileNo": "********99906",
    "misOwner": "********sh.w@t********t.com",
    "registrationNo": "********8",
    "folderNo": "********YDC"
  }
}
Expecting 'EOF', '}', ',', ']', got '{'

如果我只使用第一个原始数据,它就会正确验证

{
  "_index": "ttmnt",
  "_type": "********ils",
  "_id": "********DC",
  "_score": 1,
  "_source": {
    "_id": "********DC",
    "policyNo": "********461",
    "displayPolicyNo": "********461",
    "email": "********@GMAIL.COM",
    "name": "********",
    "mobileNo": "********",
    "misOwner": "********sh.w@t********t.com",
    "registrationNo": "dd578",
    "folderNo": "dddddYDC"
  }
}

我无法在这里找到问题......两条线具有相同的值,但是当我放置第二个原始值时会出现错误。

相关内容