NAME
Data::Record::Serialize::Encode::json - encoded a record as JSON
SYNOPSIS
use Data::Record::Serialize;
my $s = Data::Record::Serialize->new( encode => 'json', ... );
$s->send( \%record );
DESCRIPTION
Data::Record::Serialize::Encode::json encodes a record as JSON.
If a field's type is N
or I
, it will be properly encoded by JSON as a number.
It performs the Data::Record::Serialize::Role::Encode role.
INTERFACE
There are no additional attributes which may be passed to Data::Record::Serialize->new.
BUGS AND LIMITATIONS
No bugs have been reported.
Please report any bugs or feature requests to bug-data-record-serialize@rt.cpan.org
, or through the web interface at http://rt.cpan.org/Public/Dist/Display.html?Name=Data-Record-Serialize.
SEE ALSO
LICENSE AND COPYRIGHT
Copyright (c) 2014 The Smithsonian Astrophysical Observatory
Data::Record::Serialize is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
AUTHOR
Diab Jerius <djerius@cpan.org>