v0.9.12 - further refinements
Continuing the war on octal indices:
-
Octal indices are not allowed.
-
Numeric JSONPath expressions (e.g. $[1]) will no longer reference object properties
-
Strings in JSONPath expressions (e.g. $["1"]) can still reference both array and object properties, however strings with leading zeros (e.g. $["01"]) are not allowed to reference array members, object properties however are allowed. This simple rule allows for JSON Pointer to be parsed and objectified externally without needing to know about the content of the target object. JSON Pointer syntax does not distinguish between numbers or strings they way JSONPath does.
-
Octals are still allowed within script and filter expressions. The goal is only to disallow their use in array indices and not diminish the expressive power of script and filter expressions.