Transforms between JSON and TOON format.
Simply using Elixir JSON to transforms between JSON and TOON.
Example:
text = "[4]: - 1 - 2 - hello - test: k1: 1" json = ToonEx.JSON.from_toon!(text) # "[1, 2, "hello ", {"test": {"k1": 1}}]"
@spec from_toon(binary()) :: {:ok, binary()} | {:error, term()}
@spec from_toon!(binary()) :: binary()
@spec to_toon(binary()) :: {:ok, binary()} | {:error, term()}
@spec to_toon(binary()) :: binary()