From 7c20f98f74a20332959ab6c71fe6945c84197295 Mon Sep 17 00:00:00 2001 From: Xavier Guimard Date: Tue, 19 Jan 2016 13:47:44 +0000 Subject: [PATCH] Use to_json instead of JSON->encode() (#LEMONLDAP_877) --- lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Serializer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Serializer.pm b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Serializer.pm index c1e198091..2ba89522a 100644 --- a/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Serializer.pm +++ b/lemonldap-ng-common/lib/Lemonldap/NG/Common/Conf/Serializer.pm @@ -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;