Closed cmatos23 closed 5 years ago
If the root node is an Array, then an exception is thrown.
new JSONParse(json).get('root[0]')
The above code fails with No match found for <root[0]>
No match found for <root[0]>
I'm able to work around this by doing new JSONParse(json).get('root').get('[0]').
new JSONParse(json).get('root').get('[0]')
Okay, I figured out the issue. The proper syntax is root.[0] . User error :)
root.[0]
If the root node is an Array, then an exception is thrown.
new JSONParse(json).get('root[0]')
The above code fails with
No match found for <root[0]>
I'm able to work around this by doing
new JSONParse(json).get('root').get('[0]')
.