Object::Relation::Format::JSON - The Object::Relation JSON serialization class
use Object::Relation::Format::JSON; my $formatter = Object::Relation::Format::JSON->new; my $json = $formatter->serialize($obj_rel_object); my $object = $formatter->deserialize($json);
This class is used for serializing and deserializing Object::Relation objects to and from JSON. New objects may be created or existing objects may be updated using this class.
my $xml = Object::Relation::Format::JSON->new;
Creates and returns a new JSON format object.
my $content_type = $formatter->content_type;
Returns the MIME content type for the current format.
my $json = $formatter->ref_to_format($reference);
Converts an arbitrary reference to its JSON equivalent.
my $reference = $formatter->format_to_ref($json);
Converts JSON to its equivalent Perl reference.
Copyright (c) 2004-2006 Kineticode, Inc. <info@obj_relode.com>
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Object::Relation, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Object::Relation
CPAN shell
perl -MCPAN -e shell install Object::Relation
For more information on module installation, please visit the detailed CPAN module installation guide.