<div dir="ltr">JSON pointers are much less powerful than XPath, it's not really a query language. No predicates, result must be a single node. It's just '/foo/bar/baz/0' instead of 'obj.foo.bar.baz[0]' (in JS).<div>
<br></div><div style>Something in-between (more powerful than JSON pointers, less powerful than XPath) would be something like <a href="https://github.com/etrepum/kvc">https://github.com/etrepum/kvc</a> -- It won't generate results from a stream, so you'd need to use it with a standard JSON parser.</div>
<div style><br></div><div style>-bob</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 22, 2013 at 6:03 PM, Richard O'Keefe <span dir="ltr"><<a href="mailto:ok@cs.otago.ac.nz" target="_blank">ok@cs.otago.ac.nz</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On 23/01/2013, at 1:59 AM, Michel Rijnders wrote:<br>
<br>
> Yep, I was recently looking into this because I'm writing a library that will provide XPath like querying for JSON.<br>
<br>
</div>That would be JSON pointers would it?<br>
<a href="http://tools.ietf.org/html/draft-pbryan-zyp-json-pointer-00" target="_blank">http://tools.ietf.org/html/draft-pbryan-zyp-json-pointer-00</a><br>
the last time I looked at it. What's happening about that,<br>
anyway?<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div>