1
0
Fork 0
mirror of https://github.com/processone/ejabberd synced 2025-10-03 17:59:31 +02:00

Add support for null values in is_canonical_json (thanks to snoopcatt) (#4421)

This commit is contained in:
Alexey Shchepin 2025-08-15 04:45:08 +03:00
parent 51af393baa
commit a02c75aa08

View file

@ -744,6 +744,8 @@ is_canonical_json(B) when is_binary(B) ->
true; true;
is_canonical_json(B) when is_boolean(B) -> is_canonical_json(B) when is_boolean(B) ->
true; true;
is_canonical_json(null) ->
true;
is_canonical_json(Map) when is_map(Map) -> is_canonical_json(Map) when is_map(Map) ->
maps:fold( maps:fold(
fun(_K, V, true) -> fun(_K, V, true) ->