mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-22 17:28:25 +01:00
Fix typo in last commit
This commit is contained in:
parent
a4fd756eae
commit
b44b1304b8
@ -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) ->
|
||||
|
Loading…
Reference in New Issue
Block a user