Skip to content
JSON Pointer implementation for Erlang
Erlang
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
src
test
LICENSE.txt
README.md

README.md

JSON Pointer for Erlang

This is an implementation of JSON Pointer.

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.

Something went wrong with that request. Please try again.