public
Description: A Rison encoder/decoder written in Erlang
Homepage: http://tfletcher.com/dev/erlang-rison
Clone URL: git://github.com/tim/erlang-rison.git
tim (author)
Sun Jun 15 07:01:34 -0700 2008
commit  ad6cc2b6efcb34fe5170906f918660abc65dd908
tree    22edc288583ac0268029bb1cc9a7b021769ae610
parent  900ffaf217c7c53b71fe17a9a868cb843c7d0922
name age message
file .gitignore Tue Apr 01 13:46:00 -0700 2008 Initial commit [tim]
file EMakefile Tue May 13 02:13:38 -0700 2008 Add makefiles and pull tests out into their own... [tim]
file License.txt Tue May 13 02:15:12 -0700 2008 Pull license out into its own file. [tim]
file Makefile Tue May 13 03:09:40 -0700 2008 Clean before compiling. [tim]
file README.txt Tue May 13 02:28:18 -0700 2008 First attempt at a README. [tim]
directory src/ Sun Jun 15 07:01:34 -0700 2008 Remove implode/2; use string:join/2 instead. [tim]
README.txt
===============
Rison In Erlang
===============


What is this?
-------------

A Rison encoder/decoder written in Erlang.


What is Rison?
--------------

A data serialization format optimized for compactness in URIs.

See http://mjtemplate.org/examples/rison.html for more information.


How do I use it?
----------------

To convert Rison-formatted strings into Erlang terms, use rison:load/1.
To do the opposite, use rison:dump/1. For example:

  1> rison:load("!t").
  {ok, true}

  2> rison:load("!(1,2,3)").
  {ok,{array,[1,2,3]}}

  3> rison:load("123.456e789").
  {ok,{number,123,'456',789}}

  4> rison:load("abc def").
  {error,invalid_input}

  5> rison:dump({array,[1,2,3]}).
  {ok,"!(1,2,3)"}

  6> rison:dump({object,[{a,0}]}).
  {ok,"(a:0)"}

  7> rison:dump({}).
  {error,invalid_input}


Type "make i" to compile the code and get an Erlang shell where you
can try out these examples.