Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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).