NAME
Nobody::JSON - JSON encoding with the prettiest possible output
SYNOPSIS
use Nobody::JSON;
my $json = encode_json({ key => "value", list => [1, 2, 3] });
my $data = decode_json($json);
DESCRIPTION
Nobody::JSON is a thin wrapper around JSON::XS that configures the encoder for maximum human readability: ASCII-safe output, pretty-printed with indentation, and support for non-reference scalars.
The interface is intentionally compatible with JSON::XS, JSON::PP, Cpanel::JSON::XS, and any other JSON module that exports encode_json and decode_json with the same prototypes.
EXPORTS
encode_json and decode_json are exported by default. json_encode and json_decode are available as aliases via :all or explicit import.
FUNCTIONS
encode_json( $data )
Encodes $data to a pretty-printed, ASCII-safe JSON string.
decode_json( $json )
Decodes a JSON string to a Perl data structure. Thin pass-through to JSON::XS::decode_json.
AUTHOR
Rich Paul, <nobody at cpan.org>
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.