| Erlang JSON encoding & decoding |
|
JSON has become one of the most used standard notations for data transport. How to use JSON in Erlang though? There is no standard library that does this. At work, we use Mochiweb (Erlang HTTP toolkit) and then specifically the module mochijson2.erl This module works great, but we made a few small patches to it (improved UTF8 handling and better tuple support). I'll try to post those patches at a later time.
JsonEncoded = encode(E). Decoded = encode(JsonEncoded). Mochiweb is very useful, be sure to check it out!
|
| Next > |
|---|
