Skip to content

Perl module to automaticly JSON-encode a data structure when it changes

License

Notifications You must be signed in to change notification settings

brummett/JSON-String

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Name

JSON::String - Automatically update a string contianing JSON when a data structure changes

Synopsis

my $json_string = q({ a: 1, b: 2, c: [ 4, 5, 6 ] });
my $data = JSON::String->tie($json_string);

$data->{a} = 'changed'; # $json_string now contains: { "a": "changed", "b": 2, "c"; [ 4, 5, 6 ] }
@{$data->{c}} = [qw(this data changed)]; { "a": "changed", "b": 2, "c": ["this", "data", "changed"] }

About

Perl module to automaticly JSON-encode a data structure when it changes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages