EJSON - decode and encode JSON into/from Erlang terms (from CouchDB project)
C Erlang C++ Makefile
Latest commit 0966670 Oct 6, 2016 @benoitc committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
c_src Make sure doubles parse as doubles Apr 23, 2012
src use strings instead of atom. close #5 . Oct 19, 2011
t make sure ./rebar eunit don't fail. These tests aren't eunit test so put Jun 29, 2011
.gitignore initial release of ejson. make couchdb json module standalone. May 4, 2011
AUTHORS
LICENSE initial release of ejson. make couchdb json module standalone. May 4, 2011
Makefile make sure ./rebar eunit don't fail. These tests aren't eunit test so put Jun 29, 2011
NOTICE add mochiweb to the notice file May 4, 2011
README.md Update README.md Oct 6, 2016
THANKS initial release of ejson. make couchdb json module standalone. May 4, 2011
rebar
rebar.config

README.md

NOTICE: This repository is unmaintained


ejson

decode and encode JSON into/from Erlang terms using Elang NIF library if available.. This the module used in CouchDB project ported a standalone module with rebar support.

Build

$ make

Testing

$ make check

All tests should pass

Usage

Put this app in your Erlang path.

$ erl -pa ebin/
Erlang R13B04 (erts-5.7.5) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [hipe] [kernel-poll:false]

Eshell V5.7.5  (abort with ^G)
1> ejson:decode(<<"{\"foo\": true}">>).
{[{<<"foo">>,true}]}
2> ejson:encode([true, 1.2, null]).
<<"[true,1.2,null]">>