NAME

Scalar::Accessors::LikeHash::JSON - access a JSON scalar string in a hash-like manner

SYNOPSIS

my $object = Scalar::Accessors::LikeHash::JSON->new;

$object->store(some_key => 42) unless $object->exists('some_key');
$object->fetch('some_key');
$object->delete('some_key');

# The object is internally a blessed scalarref containing JSON
print $$object; 

DESCRIPTION

This is a concrete implementation of Scalar::Accessors::LikeHash.

This module requires JSON to be installed.

BUGS

Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Scalar-Accessors-LikeHash.

SEE ALSO

Scalar::Accessors::LikeHash, JSON, Acme::MooseX::JSON.

AUTHOR

Toby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCE

This software is copyright (c) 2013 by Toby Inkster.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

DISCLAIMER OF WARRANTIES

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.