Query: kiokudb::backend::serialize::json
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
KiokuDB::Backend::Serialize::JSON(3pm) User Contributed Perl Documentation KiokuDB::Backend::Serialize::JSON(3pm)NAMEKiokuDB::Backend::Serialize::JSON - Role to serialize entries to JSON strings with KiokuDB::Backend::Serialize::JSPON semanticsSYNOPSISwith qw(KiokuDB::Backend::Serialize::JSON); sub foo { my ( $self, $entry ) = @_; my $json_string = $self->serialize($entry); }DESCRIPTIONThis role provides additional convenience attributes and methods for backends that encode entries to JSON strings, on top of KiokuDB::Backend::Serialize::JSPON which only restructures the data. KiokuDB::Backend::Serialize::Delegate is preferred to using this directly.METHODSserialize $entry Returns a JSON string deserialize $json_str Returns a KiokuDB::EntryATTRIBUTESjson The JSON instance used to encode/decode the JSON. pretty Whether or not to pass the "pretty" flag to the JSON object after construction. perl v5.12.4 2010-10-11 KiokuDB::Backend::Serialize::JSON(3pm)