Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janl/erl-jsonpointer
JSON Pointer implementation for Erlang
https://github.com/janl/erl-jsonpointer
Last synced: 2 months ago
JSON representation
JSON Pointer implementation for Erlang
- Host: GitHub
- URL: https://github.com/janl/erl-jsonpointer
- Owner: janl
- License: mit
- Created: 2011-07-31T19:16:13.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-08-01T02:27:28.000Z (over 13 years ago)
- Last Synced: 2024-10-02T09:54:59.474Z (3 months ago)
- Language: Erlang
- Homepage: http://tools.ietf.org/html/draft-pbryan-zyp-json-pointer-00
- Size: 87.9 KB
- Stars: 13
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# JSON Pointer for Erlang
This is an implementation of [JSON Pointer](http://tools.ietf.org/html/draft-pbryan-zyp-json-pointer-00).
## Usage
Json = {[
{<<"a">>, 1},
{<<"b">>, {[
{<<"c">>, 2}
]}},
{<<"d">>, {[
{<<"e">>, [
{<<"a">>, 3},
{<<"b">>, 4},
{<<"c">>, 5}
]}
]}}
]},One = jsonpointer:get(Json, <<"/a">>)),
Two = jsonpointer:get(Json, <<"/b/c">>)),
Three = jsonpointer:get(Json, <<"/d/e/0/a">>)),
Four = jsonpointer:get(Json, <<"/d/e/1/b">>)),
Five = jsonpointer:get(Json, <<"/d/e/2/c">>)),## Building
$ rebar compile
## Testing
$ rebar eunit
## License
MIT License.