On Tue, Jan 8, 2013 at 9:52 AM, Jared Rosoff <jsr(_at_)10gen(_dot_)com> wrote:
1) It seems like some of the examples raised on this thread conflate JSON
documents with Javascript objects. According to the json spec, an object
always starts with an "{" and ends with a "}". Therefore, while the json
path "/1" could refer to elements in { "1": "a" } and [1,2], the latter is
not a correct JSON object.
From a JS shell session:
% JSON.stringify([1,2])
"[1,2]"
- Rob