NAME
JSON_minify.pm - minify a JSON and also remove comments
SYNOPSIS
use
JSON_minify;
my
$minifier
= JSON_minify->new();
my
$json_string
=
"<a json contents with comments>"
;
my
$minified_json
=
$minifier
->minify_string(
$json_string
, 0);
DESCRIPTION
This module provides a unique method
for
minifying a json string. This
string may eventually contains some C/C++ like comments. The minify_string
method
accept
two arguments. First the json content as a string, and a
boolean
for
striping_space (
default
is: space stripped).