mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02:00
Add support for null values in is_canonical_json (thanks to snoopcatt) (#4421)
This commit is contained in:
parent
51af393baa
commit
a02c75aa08
1 changed files with 2 additions and 0 deletions
|
@ -744,6 +744,8 @@ is_canonical_json(B) when is_binary(B) ->
|
|||
true;
|
||||
is_canonical_json(B) when is_boolean(B) ->
|
||||
true;
|
||||
is_canonical_json(null) ->
|
||||
true;
|
||||
is_canonical_json(Map) when is_map(Map) ->
|
||||
maps:fold(
|
||||
fun(_K, V, true) ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue