Anna Belle Anna Belle - 1 year ago 79
JSON Question

json- array structure valid or not

Can anyone tell me what's wrong with this JSON structure?

[
"myDay": "Sun",
"mytDate": "16/07/2017",
"myRows": [{
"myId": 1,
"myTime": "11:00",
"myNotesCount": 1,
}],
myHours": 110
]

Answer Source
{
    "myDay": "Sun",
    "mytDate": "16/07/2017",
    "myRows": [{
        "myId": 1,
        "myTime": "11:00",
        "myNotesCount": 1
    }],
    "myHours": 110
}

It should be:

  • wrapped in {}
  • no need comma after last element in array
  • near myHours missed "
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download