Decodificar com URL → Embelezar JSON

Executa esta sequência fixa: Decodificar com URL → Embelezar JSON. Insira os dados uma vez e copie ou baixe o resultado.

Entrada: TextoResultado: Texto

Entrada de texto

Execute para ver o resultado

Exemplos

A support ticket with a zero-prefixed identifier

Entrada

%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

Entrada

%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

Entrada

%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

Entrada

%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

Entrada

%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

Entrada

%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

Entrada

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

Expected answer

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

Como o resultado é produzido

  1. Decodificar com URL
  2. Embelezar JSON

Convenções e limites

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.

Ferramentas relacionadas

Organização de código