Use to_json instead of JSON->encode() (#LEMONLDAP_877)

This commit is contained in:
Xavier Guimard 2016-01-19 13:47:44 +00:00
parent a02f93677b
commit 7c20f98f74

View File

@ -72,7 +72,7 @@ sub serialize {
# 1.Hash ref
if ( ref($v) ) {
$fields->{$k} = JSON->encode($v);
$fields->{$k} = to_json($v);
}
else {
$fields->{$k} = $v;