--
You received this message because you are subscribed to the Google Groups "JSON Schema" group.
To post to this group, send email to json-...@googlegroups.com.
To unsubscribe from this group, send email to json-schema...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/json-schema?hl=en.
--
wondering... Could integers be included in the path to point into an array?
e.g. if bar was an array "#/foo/bar/0" would point to the first element
or if foo was an array, then "#/foo/1/bar" would point to foo[1].bar.
I mean there is no way to query JSON without quotation marks and
escaping of unwanted characters.Then it would look like:
#/"foo"/"bar"/0
and that is ugly.
Daniel
2011/6/8 Paul C. Bryan <paul....@forgerock.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "JSON Schema" group.
> To post to this group, send email to json-...@googlegroups.com.
> To unsubscribe from this group, send email to
> json-schema...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/json-schema?hl=en.
>
--
Daniel Kec
There is a serious problem with: "#/foo/bar/0", if bar have descendant object with name "0": somevalue. or worse what if foo have descendant object with name "bar/0" and descendant array with name bar? We cant use just some clone of xpath because: "A string begins and ends with quotation marks. All Unicode characters may be placed within the quotation marks except for the characters that must be escaped: quotation mark, reverse solidus, and the control characters (U+0000 through U+001F)." from JSON spec - http://www.ietf.org/rfc/rfc4627.txt I mean there is no way to query JSON without quotation marks and escaping of unwanted characters.Then it would look like: #/"foo"/"bar"/0 and that is ugly.
I believe JSON Pointers is intended to separately specify the URI
referencing from JSON Schema (hence it being discussed here), and this
is specified in the JSON Schema under the slash delimited resolution
section.
Kris