Curl json fix array access

Given this json
{
"testArray":[1,2],
"testArrayInbetween":[{"blarg":3},{"blub":4}],
"testDirectHit":5,
"testSubLevelHit":{"oneMoreLevel":6}
}

These keys  shold give -> these values
testArray/0 -> 1
testArray/1 ->2
testArrayInbetween/0/blarg -> 3
testArrayInbetween/1/blub -> 4
testDirectHit -> 5
testSubLevelHit/oneMoreLevel -> 6

(testArray/n wouldn't work without this patch)