Minificar JSON

Remove formatação desnecessária; o resultado é texto, não um arquivo compactado.

Entrada: TextoResultado: Texto

Entrada de texto

Execute para ver o resultado

Exemplos

A support ticket with a zero-prefixed identifier

Entrada

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

Expected answer

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

Entrada

{
    "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

Entrada

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

Expected answer

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

Entrada

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

Expected answer

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

Entrada

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

Expected answer

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

Entrada

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

Expected answer

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

Entrada

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

Expected answer

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

Entrada

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

Expected answer

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

Entrada

false

Expected answer

JSON
false
emptyList

Entrada

[
 
  	]

Expected answer

JSON
[]

Ferramentas relacionadas

Organização de código

Referência da operação

Ver a documentação técnica original (English)