a11y.skipToMainContent
1

JSON Validator

Pruebe JSON y vea al instante si es válido o inválido. Valid JSON muestra una vista de árbol formateada más tamaño, profundidad y estadísticas de cuenta clave. Invalid JSON muestra el mensaje de error exacto y la posición.

More options
Was this tool helpful?
Send output to:
Advertisement

How to use JSON Validator

  1. Pruebe su JSON en el área de texto.
  2. Haga clic en Validar JSON.
  3. Vea el árbol formateado y las estadísticas si son válidas, o la ubicación del error si son inválidas.

What is JSON Validator?

Esta herramienta analiza JSON en su navegador utilizando el código nativo "JSON".parse() seleccionado/code estrechamente API. Las entradas válidas producen una vista de árbol bastante impresa que muestra la estructura completa de un vistazo. El panel de estadísticas reporta tamaño byte, profundidad máxima de anidación, y cuenta de clave total. Las entradas inválidas superan el mensaje de error del parser junto con un snippet destacando la posición de carácter donde falló el parsing. Ningún dato deja su navegador
Advertisement

FAQ

¿Mis datos JSON se envían a un servidor?
No — toda validación se ejecuta en su navegador con JavaScript. Sus datos permanecen privados.
¿Qué cuenta como un "key" en las estadísticas?
Cada nombre de propiedad de objetos en todo el árbol JSON. Los objetos anidados aportan sus llaves recursivamente. Los rayos no añaden al recuento clave a menos que contengan objetos.
¿Puedo validar archivos JSON muy grandes?
Sí, la herramienta funciona bien hasta varios megabytes. Los archivos extremadamente grandes pueden ser lentos en formato árbol, pero la validación misma es instantánea.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement