fix(json): fix safe_encode for utf8 string

This commit is contained in:
JianBo He 2020-09-09 17:57:51 +08:00 committed by turtleDeng
parent edcbdcce87
commit 3d4eac7e7a
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ encode(Term, Opts) ->
-spec(safe_encode(json_term())
-> {ok, json_text()} | {error, Reason :: term()}).
safe_encode(Term) ->
safe_encode(Term, []).
safe_encode(Term, [force_utf8]).
-spec(safe_encode(json_term(), encode_options())
-> {ok, json_text()} | {error, Reason :: term()}).