Name
File::DataClass::Storage::JSON - Read/write JSON data storage model
Synopsis
use Moo;
extends 'File::DataClass::Schema';
has '+storage_class' => default => 'JSON';
Description
Uses JSON::MaybeXS to read and write JSON files
Configuration and Environment
Defines the following attributes;
extn
-
The extension appended to filenames. Defaults to .json
Subroutines/Methods
_read_file
Calls "decode" in JSON::MaybeXS to parse the input
_write_file
Calls "encode" in JSON::MaybeXS to generate the output
Diagnostics
None
Dependencies
Incompatibilities
There are no known incompatibilities in this module
Bugs and Limitations
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Using the module JSON::XS causes the round trip test to fail
Author
Peter Flanigan, <Support at RoxSoft.co.uk>
License and Copyright
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE