JSONPath
A library for parsing and evaluating JSONPath queries on JSON data objects. It supports both simple path queries and advanced filter queries.
The implementation seeks to be compliant with RFC9535, and attempts to match the consensus result for most queries.
Example
import json.path.JSONPath;
var query = '$.a.b';
var data = {"a": {"b": "c"}}
// [ "$['a']['b']" ]
trace(JSONPath.queryPaths(query, data));
// [ "c" ]
trace(JSONPath.query(query, data))
Licensing
JSONPath is made available under an open source MIT License. You can read more at LICENSE.