5 ms·
>Since there does not exist a standard for path syntax, ReJSON implements its own. Well there's this: JavaScript Object Notation (JSON) Pointer RFC https://too
by macca321 10y ago
>Since there does not exist a standard for path syntax, ReJSON implements its own.
Well there's this: JavaScript Object Notation (JSON) Pointer RFC https://tools.ietf.org/html/rfc6901 https://tools.ietf.org/html/rfc6901
- grenoire 10y agoLooks like ReJSON just uses periods instead of slashes as the delimiter, except for also using a period for the root object.
- dvirsky 10y agoWe wanted to start with something simple and intuitive, and since we're not doing indexing yet, we figured complex multi-selectors are an overkill at this stage. What we chose is basically the most rudimentary subset of JsonPath. Once we'll add indexing I'm guessing the path expressions will need to become more complicated, and we'll try to choose a "standard" and stick with it.
- itamarhaber 10y agoThank you, I didn't know about that one... good thing HN has comments :) Do you know if anybody is actually using RFC6901?
- lucian1900 10y agoJSON Schema uses the Pointer spec for references.
- jkodumal 10y agoJSON Patch (http://jsonpatch.com/ http://jsonpatch.com/) also uses it.