JSON Helpers for https://github.com/tonyg/erlang-rfc4627