Use to_json instead of JSON->encode() (#LEMONLDAP_877)
This commit is contained in:
parent
a02f93677b
commit
7c20f98f74
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user