The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Data::Format::Pretty::CompactJSON - Pretty-print data structure as compact JSON

VERSION

version 0.02

SYNOPSIS

 use Data::Format::Pretty::CompactJSON qw(format_pretty);
 print format_pretty($data);

Some example output:

  • format_pretty({a=>1, b=>2});

     {"a":1,"b":2}

DESCRIPTION

This module is a shortcut for using Data::Format::Pretty::JSON with options pretty=0.

FUNCTIONS

format_pretty($data, \%opts)

Return formatted data structure as JSON. See Data::Format::Pretty::JSON for details.

SEE ALSO

Data::Format::Pretty::JSON

AUTHOR

Steven Haryanto <stevenharyanto@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Steven Haryanto.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.