Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JSON Pointer implementation for Erlang
Erlang
branch: master
Failed to load latest commit information.
src Refactored and added set.
test remove trailing whitespaces
LICENSE.txt add readme, license
README.md fix formatting in readme

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.