talira

Fast, pure Erlang JSON encoder and decoder

open sourceMITfree

jsone is an open source, pure Erlang library by Takeru Ohta for encoding and decoding JSON, compliant with RFC 7159. It offers simple encode and decode functions over UTF-8 binaries, and its decoder is written in continuation-passing style so the VM can apply its binary optimizations; its README calls it one of the fastest JSON libraries that don't use NIFs.

Problems it solves

  • parse JSON in an Erlang application without a NIF
  • encode Erlang maps and lists to JSON
  • a fast pure-Erlang JSON library

Features

  • simple encode and decode functions
  • RFC 7159-compliant
  • UTF-8 encoded binaries
  • pure Erlang, no NIFs
  • continuation-passing decoder for binary optimizations

Alternatives

The same job

These do what jsone does.

  1. Jiffy JSON encoder and decoder for Erlang, written as a NIF, that puts correctness first
  2. Jason Blazing fast JSON parser and generator in pure Elixir

Compare jsone with the top 3