Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Replaced by ejson rep https://github.com/benoitc/ejson
C Erlang Perl
branch: master

This branch is 15 commits ahead of Damienkatz:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
c_src
src
test
.gitignore
Makefile
README.md
eep0018v2.txt
rebar
rebar.config

README.md

eep0018

Now available as a NIF.

Compiling

$ make

Assuming rebar works for you that should build everything. Yay.

Testing

$ make check

Hopefully the tests 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> json:decode(<<"{\"foo\": true}">>).
{ok,{[{<<"foo">>,true}]}}
2> json:encode([true, 1.2, null]).
{ok,<<"[true,1.2,null]">>}

Yeah. It's that easy.

Something went wrong with that request. Please try again.