2 ms·
Related standard for pointing to values inside of a json file - http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-01 http://tools.ietf.org/html/draft-i
by ajuc 14y ago
Related standard for pointing to values inside of a json file - http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-01 http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-0...
Example:
http://example.com/example.json#/foo/inner%20object/baz
There should be a library to do this:
var temperature = GET("http://example.com/temperature.json#/europe/poland/warsaw);
- nilliams 14y agoOh nice. I came across JSON Pointer a couple of days ago (whilst working with JSON Schema). It didn't fully make sense at the time, but now you've put it like that, I can see how even that simple (GET-only) extension to your average REST API could be pretty handy for getting at commonly-used properties. I may just implement it as a secret-squirrel feature in the API I'm working on right now.