TBX::XCS::JSON - Read and write XCS data in JSON
version 0.05
use TBX::XCS; use TBX::XCS::JSON qw(json_from_xcs); my $xcs = TBX::XCS->new(file=>'/path/to/file.xcs'); print json_from_xcs($xcs);
This module allows you to work with XCS data in JSON format.
json_from_xcs
Returns a JSON string representing the structure of the input TBX::XCS object.
xcs_from_json
Returns a new XCS object created from an input JSON string. The JSON structure is checked for validity; it should follow the same structure as that created by json_from_xcs. If the input structure is invalid, this method will croak.
Although all structure is checked for correctness, in many instances extra values do not invalidate the input; therefore, comments and the like can be inserted without error.
Nathan Glenn <garfieldnate@gmail.com>
This software is copyright (c) 2013 by Alan K. Melby.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install TBX::XCS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm TBX::XCS
CPAN shell
perl -MCPAN -e shell install TBX::XCS
For more information on module installation, please visit the detailed CPAN module installation guide.