Open clach04 opened 4 years ago
Also happens for me with valid UUIDs as keys, for example $.BatchItem.458fee10-643b-11ea-b63e-ebeb7091f738.Events
. Online evaluator like this one works fine with it: https://jsonpath.com/
Debugging a bit, I found that parsing the following JSON
{
"a" : {
"1": "one",
"2": "two",
"3": "three"
}
}
Using $.a['1']
works, but using $.a.1
does not. I tested this with jsonpath_ng.parse
and jsonpath_ng.ext.parse
both giving the same result with Python 3.6 and 3.8.
Test script:
Fails with: