use to_json and from_json in more places instead of encode_json and decode_json
This commit is contained in:
parent
b249b98a86
commit
315ce0941f
5 changed files with 11 additions and 11 deletions
|
|
@ -192,7 +192,7 @@ sub freezeGraphConfig {
|
|||
my $self = shift;
|
||||
my $obj = shift;
|
||||
|
||||
return JSON::encode_json($obj);
|
||||
return JSON::to_json($obj);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -404,7 +404,7 @@ sub thawGraphConfig {
|
|||
my $string = shift;
|
||||
|
||||
return unless $string;
|
||||
return JSON::decode_json($string);
|
||||
return JSON::from_json($string);
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue