jsonpath

A library for parsing and evaluating JSONPath queries on JSON data objects.
https://github.com/EliteMasterEric/jsonpath

To install, run:

haxelib install jsonpath 1.1.0 

See using Haxelib in Haxelib documentation for more information.

README.md

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.

Contributors
MasterEric
Version
1.1.0
Published
4 months ago
License
MIT

All libraries are free

Every month, more than a thousand developers use Haxelib to find, share, and reuse code — and assemble it in powerful new ways. Enjoy Haxe; It is great!

Explore Haxe

Haxe Manual

Haxe Code Cookbook

Haxe API documentation

You can try Haxe in the browser! try.haxe.org

Join us on GitHub!

Haxe is being developed on GitHub. Feel free to contribute or report issues to our projects.

Haxe on GitHub