Shpargalka
Hammasi bir sahifada — chop etib devorga il.
6 xil mehmon
{ "matn": "kiyimda", "raqam": 25, "chiroq": true, "bosh": null, "uy": { "ichki": 1 }, "poyezd": [1, 2, 3] }
Eng ko'p qilinadigan xatolar
| ❌ Xato | ✅ To'g'ri |
|---|---|
| {'ism': 'Aziz'} | {"ism": "Aziz"} |
| {ism: "Aziz"} | {"ism": "Aziz"} |
| {"yosh": 25,} | {"yosh": 25} |
| {"yosh": "25"} | {"yosh": 25} |
| {"a": 1} // izoh | {"a": 1} |
| {"ok": True} | {"ok": true} |
| {"n": 007} | {"n": 7} |
| {"x": undefined} | {"x": null} |
Escape jadvali
{ "qoshtirnoq": "U \"salom\" dedi", "backslash": "C:\\Users", "yangi_qator": "bir\nikki", "tab": "a\tb", "unicode": "\u0041" }
JSON Schema minimal namuna
{ "type": "object", "required": ["ism"], "properties": { "ism": { "type": "string", "minLength": 2 }, "rol": { "enum": ["admin", "user"] } }, "additionalProperties": false }
JSON Patch
[ { "op": "add", "path": "/tillar/-", "value": "de" }, { "op": "replace", "path": "/yosh", "value": 26 }, { "op": "remove", "path": "/telefon" } ]
Yodda tut
- • UTF-8, BOM yo'q. Izoh yo'q. Trailing comma yo'q.
- • Katta ID va pul — string yoki butun tiyin.
- • Sana — ISO-8601 UTC: "2026-08-04T16:10:00Z".
- • __proto__, constructor, prototype kalitlarini filtrla.
- • Parse faqat JSON.parse bilan, hech qachon eval bilan emas.