Instalar o ZYBERMART

Abra qualquer ferramenta pela tela inicial ou pelo Dock, em uma janela própria. As ferramentas que você já usou também funcionam offline.

Formatador e validador de JSON

Formate, valide e minifique JSON. Os erros aparecem com a linha e a coluna exatas.

How to format and validate JSON

  1. Paste your JSON into the input box.
  2. Click Format to pretty-print it, or Minify to compress it.
  3. If the JSON is invalid, you'll see what's wrong and the exact line and column.

JSON syntax rules

  • Data is written as "name": value pairs, and property names must be in double quotes.
  • Values can be strings (in double quotes), numbers, true, false, null, objects { } or arrays [ ].
  • Items are separated by commas, with no comma after the last item.
  • Comments are not allowed.

Example

This compact JSON:

{"name":"Ada","languages":["English","French"]}

becomes, after formatting:

{
  "name": "Ada",
  "languages": [
    "English",
    "French"
  ]
}

Frequently asked questions

What does a JSON formatter do?

It takes compact or messy JSON and adds consistent indentation and line breaks so it's easy to read. It also checks that the JSON is valid and points to the exact location of any error.

What are the most common JSON errors?

Trailing commas after the last item, single quotes instead of double quotes, unquoted property names, and comments. All of these are allowed in JavaScript but not in strict JSON.

What does minify do?

Minifying removes all unnecessary whitespace, making the JSON as small as possible. That's useful for sending data over a network or storing it compactly.

Is my JSON sent to a server?

No. Formatting and validation run entirely in your browser, so it's safe to use with API keys, tokens or private data.

Entrar no ZYBERMART

Tenha seus currículos, faturas, flashcards, notas e ferramentas salvas em todos os seus dispositivos. É grátis, e as ferramentas funcionam igual sem conta.

ou

Não precisa de senha. Ao entrar, você concorda com os termos; veja como tratamos seus dados na política de privacidade.

Sua conta

Ao sair, uma cópia do seu trabalho fica neste navegador. Em um computador compartilhado, limpe os dados do navegador depois.

O que você quer criar?

Designs

Redes sociais

Documentos

Estudos

Editar

Ver todas as 282 ferramentas