NAME
JSON::Tiny::Subclassable
DESCRIPTION
Although technically this is a subclass of JSON::Tiny, in practice it's a fork because it overrides every method, and never calls the supermethods. In fact, even though this is a subclass of JSON::Tiny, you don't need to have the latter installed to use this module.
The main difference between this module and its parent is that all the internal calls to private functions have been replaces with calls to private methods. This makes it easy to override particular parts of the JSON parsing/generation algorithm.
The other tiny added feature is to support pretty indented output.
This module was written was to make developing JSON::MultiValueOrdered simpler, but it may be of some use for other purposes as well.
JSON::Tiny::Subclassable is a subclass of JSON::Tiny, which is itself a fork of Mojo::JSON. Except where noted, the methods listed below behave identically to the methods of the same names in the superclass.
Constructor
Attributes
pretty
-
If set to true, indents generated JSON in a pretty fashion.
error
Methods
BUGS
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=JSON-MultiValueOrdered.
SEE ALSO
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2012 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.