Hi, I got a problem parsing JSON format
{
"success": true,
"data": [
{
"total": "15"
},
[
{
"rows": [
{
"id": 1,
"aton_type": 1,
"aton_name": "TANJUNG LAYAR",
"degree1": "-6",
"minute1": "45",
"second1": "0",
"direction1": "N",
"degree2": "105",
"minute2": "12",
"second2": "30",
"direction2": "E",
"location": "Banten",
"date_establish": "1879-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-09-25T07:17:35.325Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 2,
"aton_type": 1,
"aton_name": "CIKONENG",
"degree1": "-6",
"minute1": "4",
"second1": "0",
"direction1": "N",
"degree2": "105",
"minute2": "53",
"second2": "0",
"direction2": "E",
"location": "Banten",
"date_establish": "1883-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:12:09.105Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 3,
"aton_type": 1,
"aton_name": "PULAU TUNDA",
"degree1": "-5",
"minute1": "49",
"second1": "0",
"direction1": "N",
"degree2": "106",
"minute2": "17",
"second2": "0",
"direction2": "E",
"location": "Banten",
"date_establish": "1970-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:16:13.902Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 4,
"aton_type": 1,
"aton_name": "PULAU TEMPURUNG",
"degree1": "-5",
"minute1": "54",
"second1": "3",
"direction1": "N",
"degree2": "105",
"minute2": "56",
"second2": "0",
"direction2": "E",
"location": "Banten",
"date_establish": "1919-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:19:41.881Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 5,
"aton_type": 1,
"aton_name": "PULAU DELI",
"degree1": "-7",
"minute1": "1",
"second1": "0",
"direction1": "N",
"degree2": "105",
"minute2": "31",
"second2": "25",
"direction2": "E",
"location": "Banten",
"date_establish": "2006-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:21:26.339Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 6,
"aton_type": 3,
"aton_name": "CITUIS",
"degree1": "-6",
"minute1": "1",
"second1": "54.6",
"direction1": "N",
"degree2": "106",
"minute2": "34",
"second2": "7",
"direction2": "E",
"location": "Banten",
"date_establish": "2004-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:26:45.641Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 7,
"aton_type": 3,
"aton_name": "KARANG ANTU",
"degree1": "-6",
"minute1": "1",
"second1": "40",
"direction1": "N",
"degree2": "106",
"minute2": "9",
"second2": "40",
"direction2": "E",
"location": "Banten",
"date_establish": "1973-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:28:35.919Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 8,
"aton_type": 3,
"aton_name": "PULAU ULAR",
"degree1": "-6",
"minute1": "0",
"second1": "33",
"direction1": "N",
"degree2": "155",
"minute2": "55",
"second2": "34",
"direction2": "E",
"location": "Banten",
"date_establish": "1999-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:29:55.459Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 9,
"aton_type": 3,
"aton_name": "PULAU SANGIANG",
"degree1": "-5",
"minute1": "58",
"second1": "20",
"direction1": "N",
"degree2": "105",
"minute2": "51",
"second2": "08",
"direction2": "E",
"location": "Banten",
"date_establish": "1997-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:31:16.547Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 10,
"aton_type": 3,
"aton_name": "KARDINAL BARAT KARANG / TERUMBU KOLIOT",
"degree1": "-5",
"minute1": "55",
"second1": "18",
"direction1": "N",
"degree2": "105",
"minute2": "48",
"second2": "52.32",
"direction2": "E",
"location": "Banten",
"date_establish": "2017-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:33:00.298Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 11,
"aton_type": 2,
"aton_name": "MPMT TG PRIOK",
"degree1": "-6",
"minute1": "2",
"second1": "16.40",
"direction1": "N",
"degree2": "106",
"minute2": "53",
"second2": "2.795",
"direction2": "E",
"location": "Banten",
"date_establish": "2011-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:45:43.248Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 12,
"aton_type": 2,
"aton_name": "TG.PRIOK NO.1",
"degree1": "-6",
"minute1": "2",
"second1": "48",
"direction1": "N",
"degree2": "106",
"minute2": "52",
"second2": "37",
"direction2": "E",
"location": "DKI Jakarta",
"date_establish": "2015-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:45:49.800Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 13,
"aton_type": 2,
"aton_name": "TG.PRIOK NO.2",
"degree1": "-6",
"minute1": "2",
"second1": "48",
"direction1": "N",
"degree2": "106",
"minute2": "53",
"second2": "12",
"direction2": "E",
"location": "DKI Jakarta",
"date_establish": "2015-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:49:58.038Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 14,
"aton_type": 2,
"aton_name": "TG.PRIOK NO.3",
"degree1": "-6",
"minute1": "3",
"second1": "28.13",
"direction1": "N",
"degree2": "106",
"minute2": "52",
"second2": "53.07",
"direction2": "E",
"location": "DKI Jakarta",
"date_establish": "1995-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:51:41.773Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 15,
"aton_type": 2,
"aton_name": "TG.PRIOK NO.4",
"degree1": "-6",
"minute1": "3",
"second1": "28.61",
"direction1": "N",
"degree2": "106",
"minute2": "53",
"second2": "2.81",
"direction2": "E",
"location": "DKI Jakarta",
"date_establish": "1995-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:53:43.130Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
}
]
}
]
]
}
i have to try JSON Tree and got an error when testing the generated code
{
"success": true,
"data": [
{
"total": "15"
},
[
{
"rows": [
{
"id": 1,
"aton_type": 1,
"aton_name": "TANJUNG LAYAR",
"degree1": "-6",
"minute1": "45",
"second1": "0",
"direction1": "N",
"degree2": "105",
"minute2": "12",
"second2": "30",
"direction2": "E",
"location": "Banten",
"date_establish": "1879-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-09-25T07:17:35.325Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 2,
"aton_type": 1,
"aton_name": "CIKONENG",
"degree1": "-6",
"minute1": "4",
"second1": "0",
"direction1": "N",
"degree2": "105",
"minute2": "53",
"second2": "0",
"direction2": "E",
"location": "Banten",
"date_establish": "1883-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:12:09.105Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 3,
"aton_type": 1,
"aton_name": "PULAU TUNDA",
"degree1": "-5",
"minute1": "49",
"second1": "0",
"direction1": "N",
"degree2": "106",
"minute2": "17",
"second2": "0",
"direction2": "E",
"location": "Banten",
"date_establish": "1970-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:16:13.902Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 4,
"aton_type": 1,
"aton_name": "PULAU TEMPURUNG",
"degree1": "-5",
"minute1": "54",
"second1": "3",
"direction1": "N",
"degree2": "105",
"minute2": "56",
"second2": "0",
"direction2": "E",
"location": "Banten",
"date_establish": "1919-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:19:41.881Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 5,
"aton_type": 1,
"aton_name": "PULAU DELI",
"degree1": "-7",
"minute1": "1",
"second1": "0",
"direction1": "N",
"degree2": "105",
"minute2": "31",
"second2": "25",
"direction2": "E",
"location": "Banten",
"date_establish": "2006-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:21:26.339Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 6,
"aton_type": 3,
"aton_name": "CITUIS",
"degree1": "-6",
"minute1": "1",
"second1": "54.6",
"direction1": "N",
"degree2": "106",
"minute2": "34",
"second2": "7",
"direction2": "E",
"location": "Banten",
"date_establish": "2004-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:26:45.641Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 7,
"aton_type": 3,
"aton_name": "KARANG ANTU",
"degree1": "-6",
"minute1": "1",
"second1": "40",
"direction1": "N",
"degree2": "106",
"minute2": "9",
"second2": "40",
"direction2": "E",
"location": "Banten",
"date_establish": "1973-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:28:35.919Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 8,
"aton_type": 3,
"aton_name": "PULAU ULAR",
"degree1": "-6",
"minute1": "0",
"second1": "33",
"direction1": "N",
"degree2": "155",
"minute2": "55",
"second2": "34",
"direction2": "E",
"location": "Banten",
"date_establish": "1999-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:29:55.459Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 9,
"aton_type": 3,
"aton_name": "PULAU SANGIANG",
"degree1": "-5",
"minute1": "58",
"second1": "20",
"direction1": "N",
"degree2": "105",
"minute2": "51",
"second2": "08",
"direction2": "E",
"location": "Banten",
"date_establish": "1997-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:31:16.547Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 10,
"aton_type": 3,
"aton_name": "KARDINAL BARAT KARANG / TERUMBU KOLIOT",
"degree1": "-5",
"minute1": "55",
"second1": "18",
"direction1": "N",
"degree2": "105",
"minute2": "48",
"second2": "52.32",
"direction2": "E",
"location": "Banten",
"date_establish": "2017-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:33:00.298Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 11,
"aton_type": 2,
"aton_name": "MPMT TG PRIOK",
"degree1": "-6",
"minute1": "2",
"second1": "16.40",
"direction1": "N",
"degree2": "106",
"minute2": "53",
"second2": "2.795",
"direction2": "E",
"location": "Banten",
"date_establish": "2011-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:45:43.248Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 12,
"aton_type": 2,
"aton_name": "TG.PRIOK NO.1",
"degree1": "-6",
"minute1": "2",
"second1": "48",
"direction1": "N",
"degree2": "106",
"minute2": "52",
"second2": "37",
"direction2": "E",
"location": "DKI Jakarta",
"date_establish": "2015-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:45:49.800Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 13,
"aton_type": 2,
"aton_name": "TG.PRIOK NO.2",
"degree1": "-6",
"minute1": "2",
"second1": "48",
"direction1": "N",
"degree2": "106",
"minute2": "53",
"second2": "12",
"direction2": "E",
"location": "DKI Jakarta",
"date_establish": "2015-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:49:58.038Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 14,
"aton_type": 2,
"aton_name": "TG.PRIOK NO.3",
"degree1": "-6",
"minute1": "3",
"second1": "28.13",
"direction1": "N",
"degree2": "106",
"minute2": "52",
"second2": "53.07",
"direction2": "E",
"location": "DKI Jakarta",
"date_establish": "1995-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:51:41.773Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
},
{
"id": 15,
"aton_type": 2,
"aton_name": "TG.PRIOK NO.4",
"degree1": "-6",
"minute1": "3",
"second1": "28.61",
"direction1": "N",
"degree2": "106",
"minute2": "53",
"second2": "2.81",
"direction2": "E",
"location": "DKI Jakarta",
"date_establish": "1995-01-01T00:00:00.000Z",
"owner": "Disnav Priok",
"remarks": null,
"picture": null,
"created_at": "2021-10-13T03:53:43.130Z",
"updated_at": null,
"deleted_at": null,
"deleted_by": null,
"updated_by": null,
"created_by": null,
"is_delete": false,
"djpl": true,
"radius": 1000
}
]
}
]
]
}
i have to try JSON Tree and got an error when testing the generated code
B4X:
Dim parser As JSONParser
parser.Initialize(<text>)
Dim root As Map = parser.NextObject
Dim data As List = root.Get("data")
For Each coldata As Map In data
Dim total As String = coldata.Get("total")
Next
Dim success As String = root.Get("success")