X-Git-Url: http://git.rot13.org/?p=perl-cwmp.git;a=blobdiff_plain;f=lib%2FCWMP%2FStore%2FJSON.pm;h=12c2b020879228894b66f1fa913cfcc18f83c5c4;hp=43b1d4493ad3cb422e6cbabf26ce706664c4c15d;hb=350b7cc464b967408a5b6f1a7e1fbf1b56415eda;hpb=157405b9548080472295d6d9da8a85e034d1f511 diff --git a/lib/CWMP/Store/JSON.pm b/lib/CWMP/Store/JSON.pm index 43b1d44..12c2b02 100644 --- a/lib/CWMP/Store/JSON.pm +++ b/lib/CWMP/Store/JSON.pm @@ -33,12 +33,12 @@ sub file { sub save_hash { my ( $self, $file, $hash ) = @_; - write_file( $file, to_json $hash ); + write_file( $file, encode_json $hash ); } sub load_hash { my ( $self, $file ) = @_; - from_json read_file( $file ); + decode_json read_file( $file ); } sub extension { '.js' };