jsonpath icon indicating copy to clipboard operation
jsonpath copied to clipboard

error "mixed 63 and 44 in JSON bracket" is not helpful

Open zeisss opened this issue 4 years ago • 1 comments

I am trying to apply a filter and then pick the first element from the resulting set and just trying things wildly :)

JSONPath: $.items[?(@.available && @.id>1),0].id

parsing error: $.items[?(@.available && @.id>1),0].id	:1:33 - 1:34 mixed 63 and 44 in JSON bracket

I think the error wording is not helpful in this case, as I had to look into the ascii table to see that 64 is ? and 44 is ,, meaning that I mixed up the comma operator and filter thingy.

zeisss avatar Mar 16 '21 16:03 zeisss

yes that error message is strange

generikvault avatar Apr 05 '21 17:04 generikvault