NAME
TBX::XCS::JSON - Read and write XCS data in JSON
VERSION
version 0.03
SYNOPSIS
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);
DESCRIPTION
This module allows you to work with XCS data in JSON format.
METHODS
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.
AUTHOR
Nathan Glenn <garfieldnate@gmail.com>
COPYRIGHT AND LICENSE
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.