All Projects → benoitc → ejson

benoitc / ejson

Licence: Apache-2.0 license
EJSON - decode and encode JSON into/from Erlang terms (from CouchDB project)

Programming Languages

c
50402 projects - #5 most used programming language
erlang
1774 projects
C++
36643 projects - #6 most used programming language
Makefile
30231 projects

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]">>
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].