ZJ decodes escapes but does not properly encode them
A big thanks to Vance Shipley for bringing this to my attention.
Relevant part of our correspondence:
On Tue, May 7, 2019 at 4:18 PM <zxq9@zxq9.com> wrote:
> Can you describe the case with an example?
1> {ok, Map} = zj:decode([${, $\", $a, $\", $:, $\", $\\, $t, $\", $}]).
{ok,#{"a" => "\t"}}
2> zj:decode(zj:encode(Map)).
{error,#{"a" => []},"\t\"}"}
> You're saying that you can't encode an escape?
I'm saying decode automatically handles escapes but encode does not.