tOkeshu / tnetstrings

Tnetstrings for Erlang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tnetstrings for Erlang

Tnetstrings is a JSON like serialisation.

Install

You can put tnetstrings.erl in your project or add the project as a dependency if you are using rebar.

Usage

Example = {struct, [
    {age, 42},
    {name, <<"Robert">>}
]},
T = tnetstrings:encode(Example),
Example = tnetstrings:decode(T, [{label, atom}]).

State

Early release, but each types are handled.

Todo

  • Following Erlang recomandation for a JSON API
  • Explain errors

Licence

MIT

About

Tnetstrings for Erlang


Languages

Language:Erlang 100.0%