Manual Reference Pages  - CGI::Session::Serialize::json (3)

NAME

CGI::Session::Serialize::json - serializer for CGI::Session

CONTENTS

DESCRIPTION

This library can be used by CGI::Session to serialize session data. Requires JSON::Syck. JSON is a type of YAML, with one extension: serialized JSON strings are actually valid JavaScript code that a browser can execute. Any langauge that has a YAML parser (Perl, PHP, Python, Ruby, C, etc) can also read data that has been serialized with JSON.

METHODS

freeze($class, \%hash) Receives two arguments. First is the class name, the second is the data to be serialized. Should return serialized string on success, undef on failure. Error message should be set using set_error()|CGI::Session::ErrorHandler/"set_error()"
thaw($class, $string) Received two arguments. First is the class name, second is the JSON data string. Should return thawed data structure on success, undef on failure. Error message should be set using set_error()|CGI::Session::ErrorHandler/"set_error()"

SEE ALSO

CGI::Session, JSON::Syck.
Jump to page    or go to Top of page |  Section 3 |  Main Index.


perl v5.8.5 CGI::Session::Serialize::json (3) 2006-03-09
Generated by manServer 1.07 from /usr/share/man/man3/CGI::Session::Serialize::json.3pm using man macros.