],
'CWMP::Store::JSON' => [
-default => 1,
],
'CWMP::Store::JSON' => [
-default => 1,
],
'Command-line access to modems (tcli.pl)' => [
-default => 1,
],
'Command-line access to modems (tcli.pl)' => [
-default => 1,
sub save_hash {
my ( $self, $file, $hash ) = @_;
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 ) = @_;
}
sub load_hash {
my ( $self, $file ) = @_;
- from_json read_file( $file );
+ decode_json read_file( $file );
}
sub extension { '.js' };
}
sub extension { '.js' };