lelandbatey 7 days ago

Don't forget the also standardized way of referring to a single value in JSON, "JSON Pointer": datatracker.ietf.org/doc/html/rfc6901

phpnode 7 days ago

the issue with JSONPath is that it took 17 years for it to become a properly fleshed-out standard. The original idea came from a 2007 blog post [0], which was then extended and implemented subtly differently dozens of times, with the result that almost every JSON Path implementation out there is incompatible with the others.

[0] https://goessner.net/articles/JsonPath/

NewJazz 7 days ago

Postgresql supports jsonpath, right?

  • Groxx 7 days ago

    SQLite might too, though I'm struggling to find anything explicit about the syntax: https://sqlite.org/json1.html#jptr

    it might just be a very limited subset?

    • NewJazz 7 days ago

      Looks like "JSON Pointer": datatracker.ietf.org/doc/html/rfc6901

      • thayne 6 days ago

        JSON pointer uses very different syntax. Sqlite looks like it uses something that is very similar to, but not quite compatible with, JSONPath.