Finding org-json solutions only please **
Suppose you are dealing with a structure as shown below.
Using json-org, how can I get an array of tests if all this json is represented in Strings?
Using Google gson, this is easy to do by checking what type of given object is ... I am missing something simple here with json-orglibrary
{
"Groups":{
"Test":[
{
"Test Number":123456,
"Channel":"TEST",
"environment":"A",
"output event":[
{
"description":"very good description",
"value":123,
"active":true
},
{
"description":"another very good description",
"value":456,
"active":true
}
],
"active":true,
"instrument":"ABC"
},
{
"Test Number":547985,
"Channel":"some new channel",
"environment":"B",
"output event":[
{
"description":"reject",
"value":123,
"active":true
},
{
"description":"ack",
"value":456,
"active":true
}
],
"active":true,
"instrument":"XYZ"
}
],
"name":"A clever name",
"active":true
}
}
source
share