https://github.com/elitemastereric/jsonpath
A JSONPath evaluator for Haxe
https://github.com/elitemastereric/jsonpath
haxe json jsonpath
Last synced: 8 months ago
JSON representation
A JSONPath evaluator for Haxe
- Host: GitHub
- URL: https://github.com/elitemastereric/jsonpath
- Owner: EliteMasterEric
- License: mit
- Created: 2024-07-19T02:03:07.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-26T04:04:50.000Z (almost 2 years ago)
- Last Synced: 2024-07-26T05:22:47.929Z (almost 2 years ago)
- Topics: haxe, json, jsonpath
- Language: Haxe
- Homepage: https://www.elitemastereric.com/JSONPath/
- Size: 351 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# JSONPath
A library for parsing and evaluating [JSONPath](https://goessner.net/articles/JsonPath/) queries on JSON data objects. It supports both simple path queries and advanced filter queries.
The implementation seeks to be compliant with [RFC9535](https://datatracker.ietf.org/doc/rfc9535/), and attempts to match the [consensus result for most queries](https://cburgmer.github.io/json-path-comparison/).
## Example
```haxe
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](LICENSE.md).