Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/elitemastereric/jsonpath
A JSONPath evaluator for Haxe
https://github.com/elitemastereric/jsonpath
haxe json jsonpath
Last synced: 2 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 (7 months ago)
- Default Branch: main
- Last Pushed: 2024-07-26T04:04:50.000Z (6 months ago)
- Last Synced: 2024-07-26T05:22:47.929Z (6 months 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))
```## JSONPatch
https://github.com/json-patch/json-patch2/issues?page=2&q=is%3Aissue+is%3Aopen
https://datatracker.ietf.org/doc/rfc6901/
https://datatracker.ietf.org/doc/rfc6902/
https://github.com/danielaparker/JsonCons.Net## Licensing
JSONPath is made available under an open source MIT License. You can read more at [LICENSE](LICENSE.md).