Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

JSON Pointer implementation for Erlang

branch: master
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.