Closed noelwelsh closed 11 years ago
JPath syntax is now (roughly)
jPath := pathElement pathElement := id | quotedField | numericField id := .[a-zA-Z$][a-zA-Z$0-9] quotedField := ['quotedId'] | ["quotedId"] numericField := []
quotedId is a string with \ used as an escape character.
The first element of a jPath need not start with a . if it is an id
Example:
foo['bar bar']["black sheep"] is a valid reference into
{"foo": {"bar bar": {"black sheep": "aValue"}}}
Can one of the admins verify this patch?
Thanks!
JPath syntax is now (roughly)
jPath := pathElement pathElement := id | quotedField | numericField id := .[a-zA-Z$][a-zA-Z$0-9] quotedField := ['quotedId'] | ["quotedId"] numericField := []
quotedId is a string with \ used as an escape character.
The first element of a jPath need not start with a . if it is an id
Example:
foo['bar bar']["black sheep"] is a valid reference into
{"foo": {"bar bar": {"black sheep": "aValue"}}}