Mit URL dekodieren → JSON verschönern

Führt diese feste Reihenfolge aus: Mit URL dekodieren → JSON verschönern. Daten einmal eingeben, Ergebnis kopieren oder herunterladen.

Eingabe: TextErgebnis: Text

Texteingabe

Ausführen, um das Ergebnis zu sehen

Beispiele

A support ticket with a zero-prefixed identifier

Eingabe

%7B%22ticket%22%3A%2200123%22%2C%22priority%22%3A%22high%22%7D

Expected answer

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

Eingabe

%7B%22station%22%3A%22demo-observatory%22%2C%22temperatureC%22%3A-12.5%2C%22open%22%3Afalse%7D

Expected answer

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

Eingabe

%7B%22item%22%3A%22caf%C3%A9%22%2C%22price%22%3A3.5%2C%22currency%22%3A%22EUR%22%7D

Expected answer

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

Eingabe

%7B%22timeoutMs%22%3A5000%2C%22retries%22%3A2%2C%22enabled%22%3Atrue%7D

Expected answer

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

Eingabe

%7B%22width%22%3A640%2C%22height%22%3A480%2C%22caption%22%3Anull%7D

Expected answer

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

Eingabe

%7B%22version%22%3A%222.1.0%22%2C%22notes%22%3A%22Fixed%20parser%5CnAdded%20tests%22%7D

Expected answer

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

Eingabe

%7B%22results%22%3A%5B%5D%2C%22total%22%3A0%7D

Expected answer

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

So entsteht das Ergebnis

  1. Mit URL dekodieren
  2. JSON verschönern

Konventionen und Grenzen

Some systems encode values more than once. Apply only the required number of decoding steps, and check whether plus signs represent spaces for your source.

Ähnliche Werkzeuge

Code-Bereinigung