The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

IWL::JSON - helper functions for converting to and from JSON notation

DESCRIPTION

IWL::JSON provides function for converting JSON strings to Perl objects and vice versa. It is an exact replica of Prototype JS' toJSON and evalJSON, which means that the equivalent operations in JavaScript should be done with those methods.

Functions

toJSON (DATA)

toJSON is a helper function for converting Perl data structures to JSON

Parameters: DATA - The data to convert to JSON

evalJSON (STRING, SANITIZE)

evalJSON is a helper function for converting JSON notation to Perl data structures. Internally, in uses Perl's eval(3pm) function.

Parameters: STRING - The JSON string to convert to Perl data, SANITIZE - if sanitize is true, the string is checked for possible malicious code, and eval(3pm) is not called if such is found.

isJSON (STRING)

isJSON checks whether the string is in a valid JSON format, and returns true if it is.

LICENCE AND COPYRIGHT

Copyright (c) 2006-2007 Viktor Kojouharov. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perldoc perlartistic.

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.

1 POD Error

The following errors were encountered while parsing the POD:

Around line 129:

You forgot a '=back' before '=head1'