{
    "mode": "perldoc",
    "parameter": "JSON::Whitespace",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/JSON%3A%3AWhitespace/json",
    "generated": "2026-06-14T00:51:22Z",
    "synopsis": "use JSON::Whitespace ':all';\nmy $in = <<EOF;\n{\n\"animals\":{\n\"kingkong\":\"🦍\"\n},\n\"baka\":[\n\"ドジ\"\n],\n\"fruit\":{\n\"grape\":\"🍇\"\n},\n\"moons\":{\n\"🌑\":0\n}\n}\nEOF\nmy $minify = jsonminify ($in);\nprint $minify;\nThis outputs\n{\"animals\":{\"kingkong\":\"🦍\"},\"baka\":[\"ドジ\"],\"fruit\":{\"grape\":\"🍇\"},\"moons\":{\"🌑\":0}}",
    "sections": {
        "NAME": {
            "content": "JSON::Whitespace - Alter the insignificant whitespace of JSON\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "use JSON::Whitespace ':all';\n\nmy $in = <<EOF;\n{\n\"animals\":{\n\"kingkong\":\"🦍\"\n},\n\"baka\":[\n\"ドジ\"\n],\n\"fruit\":{\n\"grape\":\"🍇\"\n},\n\"moons\":{\n\"🌑\":0\n}\n}\nEOF\nmy $minify = jsonminify ($in);\nprint $minify;\n\nThis outputs\n\n{\"animals\":{\"kingkong\":\"🦍\"},\"baka\":[\"ドジ\"],\"fruit\":{\"grape\":\"🍇\"},\"moons\":{\"🌑\":0}}\n",
            "subsections": []
        },
        "VERSION": {
            "content": "This documents version 0.61 of JSON::Whitespace corresponding to git commit\n033269fa8972fdce8626aa65cd11a5394ab50492\n<https://github.com/benkasminbullock/JSON-Parse/commit/033269fa8972fdce8626aa65cd11a5394ab50492>\nreleased on Thu Feb 11 09:14:04 2021 +0900.\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This module offers functions to manipulate the \"insignificant whitespace\" part of a JSON string\n(the whitespace which is not inside strings). According to the JSON specification \"insignificant\nwhitespace\" consists of space (%x20), horizontal tab (%x09), line feed or new line (%x0A) and\ncarriage return (%x0D).\n",
            "subsections": []
        },
        "FUNCTIONS": {
            "content": "jsonindent\nmy $indented = jsonindent ($json);\n\nAdd indentation to $json.\n\njsonminify\nmy $minified = jsonminify ($json);\n\nRemove all whitespace, including trailing newlines, from $json.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "Documentation about JSON is in JSON::Parse. JSON::Whitespace is based on JSON::Tokenize, which\nbreaks JSON into tokens without putting it into Perl structures.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Ben Bullock, <bkb@cpan.org>\n\nCOPYRIGHT & LICENCE\nThis package and associated files are copyright (C) 2016-2021 Ben Bullock.\n\nYou can use, copy, modify and redistribute this package and associated files under the Perl\nArtistic Licence or the GNU General Public Licence.\n",
            "subsections": []
        }
    },
    "summary": "JSON::Whitespace - Alter the insignificant whitespace of JSON",
    "flags": [],
    "examples": [],
    "see_also": []
}