2

When I am using below code :

{
   "info":[
      {
         "name": "Adam",
         "address": "Park Street"
      }
    ]
}

It is parsing perfectly

but adding on further code like:

{
   "info":[
      {
        "name": "Adam",
        "address": "Park Street1"
      },
      {     //<------ getting error here
        "name": "Bob",
        "address": "Park Street2"
      },
      {
        "name": "Clarin",
        "address": "Park Street3"
      }
    ]
}

I am getting error : Parse error

4

2 に答える 2

1

jsonlint.comで確認してください。JSON は完璧です...エディタに問題がある可能性があります

于 2013-05-24T08:08:42.933 に答える