UTILITIES NEWBIE

JSON minifier

Create a compact JSON representation without removing spaces that belong inside string values.

Source

0 characters

Import a local UTF-8 file
Print and optional local draft

An explicit save stores only source text as plaintext in this browser on this device. Do not save secrets or use a shared device. Nothing is saved or loaded automatically.

No draft has been loaded.

Output

Worked input and output

Input

{
  "label": "keep this space",
  "items": [1, 2]
}

Output

{"label":"keep this space","items":[1,2]}

Whitespace between tokens is omitted. The spaces inside “keep this space” are part of the data and remain.