Saltar al contenido
uencoder

Formatear, validar, y repair malformed JSON

Tomar un JSON cadena (possibly minified, con trailing commas, o comments) y produce válido, indented JSON con error diagnostics.

  1. 1

    JSON from APIs is often minified for transport, and JSON from humans often has errors (trailing commas, single quotes, comments). Formatting makes it readable; validation catches structural errors before parsing fails in production.

  2. 2
    Validador JSON →

    Paste the JSON. The tool reports whether it is valid and, if not, the exact location and nature of the syntax error (unexpected token, missing comma, unterminated string).

  3. 3
    Formateador JSON →

    Paste valid (or valid-ish) JSON to re-indent it with 2 spaces, sort keys if desired, and normalize whitespace for consistent diffs.

  4. 4

    Use the chain to validate-then-format in one pass: if validation fails you get the error; if it passes you get formatted output.

Preguntas frecuentes

Why does my JSON with comments fail validation?
Standard JSON (RFC 8259) does not allow comments. Some parsers (JSON5, JSONC used by VS Code) accept them, but strict JSON does not. Strip comments before sending to a strict parser, or use a JSONC-aware parser.
Can the tool fix trailing commas automatically?
Strict JSON forbids trailing commas. The validator flags them; some formatters can strip them during formatting. However, automatic repair can mask real errors — always review the diff after any auto-fix.

Flujos que resuelven esta tarea

Hash BLAKE con suma de verificación CRC32
Calcular hash BLAKE y luego suma de verificación CRC32 para verificación de integridad.
CANALIZACIÓN
Convertir convención de nombres y validar como JSON
Convertir identificadores a una convención de nombres objetivo, luego validar el resultado como JSON para confirmar la estructura.
CANALIZACIÓN
Comparar dos configuraciones YAML vía JSON
Convertir configuraciones YAML a JSON para comparación de valores estructurados apta para diff.
CANALIZACIÓN
Codificar un payload JSON para transporte por URL
Preparar un documento JSON para un parámetro URL: embellecer, codificar en Base64, luego codificar por ciento — el inverso exacto de la cadena de decodificación de parámetros anidados.
CANALIZACIÓN
Hash texto y verificar con suma CRC32
Calcular tanto un hash criptográfico SHA-256 como una suma de verificación CRC32 para verificación de integridad de datos.
CANALIZACIÓN
HJSON a formato JSON
Formatear HJSON y convertir a JSON estándar.
CANALIZACIÓN
Formatear JS y validar JSON
Formatear código JS y luego validar como JSON.
CANALIZACIÓN
Formatear JSON y calcular suma de verificación de integridad
Embellecer un documento JSON y calcular una suma CRC32 para detectar modificaciones posteriores.
CANALIZACIÓN
Minificar y validar JSON
Formatear JSON para inspección y validar que sea sintácticamente correcto en una pasada.
CANALIZACIÓN
Generar JSON Schema y validar
Generar un JSON Schema a partir de datos de muestra y luego validar contra él.
CANALIZACIÓN
Formatear JSON y generar interfaz TypeScript
Formatear un documento JSON y luego inferir una definición de interfaz TypeScript en una cadena.
CANALIZACIÓN
Validar, formatear, luego convertir JSON a YAML
Convertir una configuración JSON (posiblemente minificada) a YAML, capturando errores de sintaxis en el primer nodo en lugar de producir YAML sutilmente incorrecto.
CANALIZACIÓN
JSON5 a formato JSON
Formatear JSON5 y convertir a JSON estándar.
CANALIZACIÓN
JSONC a formato JSON
Formatear JSONC (JSON con comentarios) y convertir a JSON estándar.
CANALIZACIÓN
Decodificar y formatear un payload JWT
Analizar un token JWT, extraer su payload y formatear el JSON para inspección.
CANALIZACIÓN
Analizar cadena de consulta y formatear JSON
Analizar una cadena de consulta en pares clave-valor y luego formatear como JSON.
CANALIZACIÓN
Hash SHA3-256 con suma CRC32
Calcular hash SHA3-256 y luego suma CRC32 para verificación dual de integridad.
CANALIZACIÓN
Convertir TOML a JSON
Analizar un archivo de configuracion TOML en JSON para herramientas y APIs que esperan entrada JSON.
CANALIZACIÓN
Convertir TOML a YAML via JSON
Transformar un archivo de configuracion TOML a formato YAML, usando JSON como representacion intermedia.
CANALIZACIÓN
Decodificar parametro URL anidado (Base64 JSON)
Desenvolver un parametro URL que transporta JSON Base64 codificado URL en JSON formateado legible.
CANALIZACIÓN
Generar interfaces TypeScript desde YAML
Convertir un documento YAML a definiciones de interfaz TypeScript, usando JSON como formato intermedio.
CANALIZACIÓN
Validar y formatear YAML
Convertir YAML a JSON para validar su estructura, luego confirmar que el JSON esta bien formado.
CANALIZACIÓN

Herramientas relacionadas