I have JSON text that looks like this:
{
"ok": true,
"totalPages": 256,
"arReports": {
"r2807328": {
"marchReportId": "2807328",
"reportUnixTime": "1332742728",
"marchTypeState": "1"
},
"r2804256": {
"marchReportId": "2804256",
"reportUnixTime": "1332722319",
"marchType": "4",
"marchTypeState": "1"
}
},
"arOtherNames": {
"a455": "JL",
"a44": "CCCP",
"a796": "Waffenstudenten"
}
}
I then do:
var objGW = eval('(' + s + ')');
var d = new sbt.JsonNavigator(objGW);
How do I get the list of report ids (r2807328, etc) and then the corresponding marchReportId for each?
I've tried d.stringValues('arReports') and d.stringValues('arReports/marchId') but I dont get the values as text or an array? What am I doing wrong?