Simple json encoding and decoding based on the NIF example from chapter 12 of the excellent book Erlang and OTP in Action.
https://github.com/erlware/Erlang-and-OTP-in-Action-Source/tree/master/chapter_12
The aim of this implementation is to represent JSON with Erlang terms as concisely as possible without loosing any semantics.