Is there a query language for JSON?

EDIT Sept 2022:

JMESPath seems to be the most widely-used, fastest-growing, and best-reviewed of alternatives for this. It has many features, including “where”-style filters.

ORIGINAL:

Sure, how about:

  • JsonPath.
  • Json Query

They all seem to be a bit work in progress, but work to some degree. They are also similar to XPath and XQuery conceptually; even though XML and JSON have different conceptual models (hierarchic vs object/struct).

EDIT Sept 2015:

Actually there is now JSON Pointer standard that allows very simple and efficient traversal of JSON content. It is not only formally specified, but also supported by many JSON libraries. So I would call it actual real useful standard, although due to its limited expressiveness it may or may not be considered Query Language per se.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)