If I have a json object like this:
{
"name": "value"
}
I can do jobjectCurrent["name"]
and get the reference to that object.
However, if I have a json like this:
{
"items":[]
}
I can NOT do jobjectCurrent["items"]
. How would I find out then if items exists and if its a jarray and get a reference to the jarray so I can add items?
Is there a syntax where I can generically access normal key/value pairs as well as arrays?