Lloyd Hilaiel
unread,May 19, 2009, 9:41:11 PM5/19/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to json-query
How might properties be escaped in JSONQuery? Because dot '.' is
legal in a json property name, there must be a way to escape it, for
instance here are a couple documents that demonstrate the ambiguity:
{"foo.bar.baz": "bing"}
{"foo": { "bar": { "baz" : "boom" } } }
What does the JSONQuery "$.foo.bar.baz" return?
A similar issues arises with a left square bracket.
There seem to be two options, make all properties valid JSON strings
(hence, requiring quotes and following the escaping rules in json), or
make it a bit more sloppy and allow for the omission of the quote
where the first whitespace, left square brace, or dot would terminate
the string...
So '$."foo.bar.baz"' -> "bing"
and '$.foo."bar".baz" -> "boom"
thoughts?
lloyd