Convert Elixir terms to and from JSON strings.
Decode a JSON string to an Elixir term.
Encode an Elixir term to a JSON string.
iex> TermToJson.decode(~s({":major": 1,":minor": 3,":build": null,":__struct__": ":Elixir.Version",":pre": [],":patch": 7})) %Version{major: 1, minor: 3, patch: 7}
iex> TermToJson.encode(1) "1"