تصغير JSON

يزيل التنسيق الزائد؛ تبقى النتيجة نصًا وليست ملفًا مضغوطًا.

المدخلات: نصالنتيجة: نص

إدخال نصي

شغّل الأداة لعرض النتيجة

أمثلة

A support ticket with a zero-prefixed identifier

المدخلات

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

Expected answer

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

المدخلات

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

المدخلات

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

Expected answer

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

المدخلات

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

Expected answer

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

المدخلات

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

Expected answer

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

المدخلات

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

Expected answer

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

المدخلات

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

Expected answer

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

المدخلات

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

Expected answer

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

المدخلات

false

Expected answer

JSON
false
emptyList

المدخلات

[
 
  	]

Expected answer

JSON
[]

أدوات ذات صلة

تنسيق الشفرة

مرجع العملية

عرض الوثائق التقنية الأصلية (English)