Repository navigation
v0.2.0
Changes
objectPathputs a key with.,[or]in quoted brackets:objectPath("$", "a.b")gives$['a.b']. Before, it gave$.a.b, the same path as the nested key{ a: { b } }. A backslash escapes'and\in a quoted key. Other keys keep the dot form.pathDepthcounts a quoted key as one level, as a key after a dot. A dot in a quoted key does not count. Before,pathDepth("$.a.b")gave 3 for the keya.b.
The path of a key with ., [ or ] changes. Thus this version is a breaking change (before 1.0.0, MINOR).