I’m parsing JSON that looks like this:
{
"attr1": true,
"attr2": "foo",
"attr3": 7,
"attr4": [
{
"someattr1": "foo",
"someattr2": "bar"
},
{
"someattr1": "foo",
"someattr2": "bar"
},
],
"attr6": false
}
How would I go about getting the 2nd attr4’s someattr1 using jsonpickle? Kinda got me lost. Thanks in advance.
Please note that your json object has an extra comma before the closing square bracket that will make the parser fail. Once removed that, you can:
HTH!