/[cwmp]/google/trunk/lib/CWMP/Store/JSON.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /google/trunk/lib/CWMP/Store/JSON.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 242 by dpavlin, Sun Nov 25 20:33:12 2007 UTC revision 243 by dpavlin, Mon Jul 14 16:37:35 2008 UTC
# Line 33  sub file { Line 33  sub file {
33    
34  sub save_hash {  sub save_hash {
35          my ( $self, $file, $hash ) = @_;          my ( $self, $file, $hash ) = @_;
36          write_file( $file, to_json $hash );          write_file( $file, encode_json $hash );
37  }  }
38    
39  sub load_hash {  sub load_hash {
40          my ( $self, $file ) = @_;          my ( $self, $file ) = @_;
41          from_json read_file( $file );          decode_json read_file( $file );
42  }  }
43    
44  sub extension { '.js' };  sub extension { '.js' };

Legend:
Removed from v.242  
changed lines
  Added in v.243

  ViewVC Help
Powered by ViewVC 1.1.26