
I personally went with pyjq because I use jq all the time for data exploration but ObjectPath seems very attractive and not limited to json.

I remembered from working with C# a bit that they had a somewhat generic querying system called LINQ for handling these sort of querying issues.
Python json query language code#
It was derived from JavaScript, but many modern programming languages include code to generate and parse. This can be used to decode a JSON document from a string that may have extraneous data at the end. JSON is a language-independent data format.


I thought about this a little bit, and I lean towards something less specific such as a "JSON Query Language" and considered something more generic. Decode a JSON document from s (a str beginning with a JSON document) and return a 2-tuple of the Python representation and the index in s where the document ended. Attempting to insert a value into a JSON column succeeds if the value is a valid JSON value, but fails if it is not: mysql> CREATE TABLE t1 (jdoc JSON) Query.
