IWL::JSON - helper functions for converting to and from JSON notation
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.
toJSON is a helper function for converting Perl data structures to JSON
Parameters: DATA - The data to convert to JSON
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 checks whether the string is in a valid JSON format, and returns true if it is.
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:
You forgot a '=back' before '=head1'
To install IWL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IWL
CPAN shell
perl -MCPAN -e shell install IWL
For more information on module installation, please visit the detailed CPAN module installation guide.