JSON minimieren

Unnötige Codeformatierung entfernen; das Ergebnis bleibt Text, keine komprimierte Datei.

Eingabe: TextErgebnis: Text

Texteingabe

Ausführen, um das Ergebnis zu sehen

Beispiele

A support ticket with a zero-prefixed identifier

Eingabe

{
    "ticket": "00123",
    "priority": "high"
}

Expected answer

{"ticket":"00123","priority":"high"}
An observatory reading with a negative temperature

Eingabe

{
    "station": "demo-observatory",
    "temperatureC": -12.5,
    "open": false
}

Expected answer

{"station":"demo-observatory","temperatureC":-12.5,"open":false}
A café menu with Unicode and a decimal price

Eingabe

{
    "item": "café",
    "price": 3.5,
    "currency": "EUR"
}

Expected answer

{"item":"café","price":3.5,"currency":"EUR"}
A safe webhook retry policy

Eingabe

{
    "timeoutMs": 5000,
    "retries": 2,
    "enabled": true
}

Expected answer

{"timeoutMs":5000,"retries":2,"enabled":true}
An image manifest with a null caption

Eingabe

{
    "width": 640,
    "height": 480,
    "caption": null
}

Expected answer

{"width":640,"height":480,"caption":null}
A release note with an embedded newline

Eingabe

{
    "version": "2.1.0",
    "notes": "Fixed parser\nAdded tests"
}

Expected answer

{"version":"2.1.0","notes":"Fixed parser\nAdded tests"}
An empty search result

Eingabe

{
    "results": [],
    "total": 0
}

Expected answer

{"results":[],"total":0}
Minify a 64-bit identifier without rounding

Eingabe

{"id": 18446744073709551615, "active": true}

Expected answer

{"id":18446744073709551615,"active":true}
boolean

Eingabe

false

Expected answer

JSON
false
emptyList

Eingabe

[
 
  	]

Expected answer

JSON
[]

Ähnliche Werkzeuge

Code-Bereinigung

Referenz zur Operation

Technische Originaldokumentation ansehen (English)