Formateador JSON
Formatea, valida y minimiza JSON, explóralo como árbol plegable, fíltralo por JSONPath, repara la sintaxis rota y genera interfaces de TypeScript o esquemas de Zod.
Se ejecuta por completo en tu navegador: nada de lo que pegues se sube.
Claves, $, [0], comodín de array [*] y comodín de objeto * — por ejemplo $.posts[*].slug. La salida y el árbol siguen el filtro; un filtro vacío usa el documento completo.
{
"id": 42,
"name": "RYUSLOG DEV",
"tags": [
"json",
"typescript"
],
"owner": {
"handle": "r39",
"verified": true
},
"posts": [
{
"slug": "json-format",
"views": 1200
},
{
"slug": "jwt-decode",
"views": 860
}
]
}El formato se ejecuta en tu navegador. El JSON no válido nunca se envía a ningún sitio.
Chuleta de JSON
referencia rápida- JSON.parse(text)
- Convierte una cadena JSON en un valor; lanza SyntaxError con una coma final o una comilla simple.
- JSON.stringify(value, null, 2)
- Formatea con sangría de dos espacios; el tercer argumento puede ser una cadena o un número de espacios.
- undefined, function
- Se descartan en objetos, pero dentro de arrays se convierten en null al serializar.
- Date
- Se serializa mediante toJSON(), así que siempre acaba como cadena ISO 8601, por ejemplo 2026-11-16T05:00:00.000Z.
- "{\"a\":1}"
- Una cadena JSON escapada guardada en logs o variables de entorno necesita un desescapado antes de poder analizarse.
- $.posts[*].slug
- JSONPath del filtro: $ es la raíz, .key lee una clave, [0] un índice y [*] recoge todos los elementos.
Guías de sintaxis de TypeScript
Todas las guías de TypeScriptZod infer vs TypeScript Interfaces: Runtime Validation Gaps
An interface validates nothing, z.infer is the output type and not the input, and Zod 4 renamed the error helpers. What each one actually guarantees.
TypeScriptTypeScript Decorators: Standard vs experimentalDecorators
TS1240 appears when a legacy decorator meets the stage 3 transform, and the reverse breaks NestJS DI. How the two signatures differ and which flag each stack needs.
TypeScriptTS2307 and TS2835: Cannot Find Module Under moduleResolution NodeNext
NodeNext models Node's real resolution, so .js belongs in the source import and exports maps decide what exists. Why bundler resolution hides both errors.
TypeScriptTypeScript strict Mode: TS2531, TS7006, and TS18047 Migrations
strict is nine flags at once. Count errors per code, fix them in the order that keeps the build green, and narrow instead of asserting.