Skip to content

Commit

Permalink
Fix typo in last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
prefiks committed Jul 3, 2024
1 parent a4fd756 commit b44b130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/misc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -140,12 +140,12 @@ json_decode(Bin) ->
jiffy:decode(Bin, [return_maps]).
-else.
json_encode_with_kv_lists(Term) ->
iolist_to_binary(json:encode(Term),
iolist_to_binary(json:encode(Term,
fun([{_, _} | _] = Val, Encoder) ->
json:encode_key_value_list(Val, Encoder);
(Val, Encoder) ->
json:encode_value(Val, Encoder)
end).
end)).
json_encode(Term) ->
iolist_to_binary(json:encode(Term)).
json_decode(Bin) ->
Expand Down

0 comments on commit b44b130

Please sign in to comment.