News for hackers. Stuff that matters.
Re:Jsonpath – a query language for JSON in Postgres [pdf] by thechao on Saturday May 18, 2019 @10:49PM (#19951130)
Xpath’s relationship to XML is like CSS to HTML: its natural domain—and most common use—is XML. However, it is a general path selection/query mechanism with a UNIX-file-path-like syntax.
Re:Jsonpath – a query language for JSON in Postgres [pdf] by theamk on Saturday May 18, 2019 @10:56PM (#19951157)
There are large parts of XPath which are XML specific, like attributes or namespaces or node names (JSON’s arrays of arrays have neither). I am sure with enough effort one could use Xpath for generic JSON queries, but this will require non-obvious redesign of the language.