<<"{\"to\":\"Jon Doe\",\"text\":\"Hello John,\n\nVisit me to renew.\"}">>
Error:
exception error: bad argument
in function jsone_decode:string/6
called as jsone_decode:string(<<"\n\nVisit me to renew.\"}">>,
<<"Hello John,\n\nVisit me to renew.\"}">>,
0,
[{object_next,<<"text">>,
[{<<"to">>,<<"Jon Doe">>}]}],
<<>>,
{decode_opt_v2,proplist,false,binary,
false})
in call from jsone:decode/2 (src/jsone.erl, line 293)
Try to decode the following
Error: