URLでデコード → JSON 整形

次の固定順序で処理します:URLでデコード → JSON 整形。 一度入力すれば、結果をコピーまたはダウンロードできます。

入力: テキスト結果: テキスト

テキスト入力

実行すると結果が表示されます

使用例

A support ticket with a zero-prefixed identifier

入力

%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

入力

%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

入力

%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

入力

%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

入力

%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

入力

%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

入力

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

Expected answer

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

結果が生成される仕組み

  1. URLでデコード
  2. JSON 整形

規則と制限

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.

関連ツール

コード整形