Add JSON encoder and decoder (decoder based on sources from the book Erlang and OTP in Action, see the .c file for details)