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
name age message
file Emakefile Thu Oct 23 12:23:54 -0700 2008 Use correct capitalization for Emakefile. [tim]
file License.txt Tue May 13 02:15:12 -0700 2008 Pull license out into its own file. [tim]
file Makefile Thu Oct 23 12:26:56 -0700 2008 Assorted Makefile tweaks. [tim]
file README.txt Thu Oct 23 12:27:53 -0700 2008 Update README to use correct title. [tim]
directory src/ Thu Oct 23 12:26:46 -0700 2008 Style tweak. [tim]
README.txt
============
erlang-rison
============


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.