MozRepl::Plugin::JSON - To JSON string plugin.
version 0.04
use MozRepl; use MozRepl::Util; my $repl = MozRepl->new; $repl->setup({ plugins => { plugins => [qw/JSON/] } }); print $repl->json({ source => MozRepl::Util->javascript_value({foo => 1, bar => 2}) });
Add json() method to MozRepl.
Load script at http://www.thomasfrank.se/downloadableJS/jsonStringify.js
Context object. See MozRepl.
Hash reference.
Source string. If you want to JavaScript literal, then use MozRepl::Util->javascript_value() method. See "javascript_value($value)" in MozRepl::Util.
Toru Yamaguchi, <zigorou@cpan.org>
<zigorou@cpan.org>
Please report any bugs or feature requests to bug-mozrepl-plugin-json@rt.cpan.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-mozrepl-plugin-json@rt.cpan.org
Copyright 2007 Toru Yamaguchi, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install MozRepl, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MozRepl
CPAN shell
perl -MCPAN -e shell install MozRepl
For more information on module installation, please visit the detailed CPAN module installation guide.