# Diferenças JSON

> Compare dois valores JSON e veja suas diferenças.

[Open tool](https://www.toolcabana.com/pt-br/json-diff) · [Desenvolvimento e dados](https://www.toolcabana.com/pt-br/category/developer-and-data)

Tool ID: json-diff. Requested language: pt-BR. Description language: pt-BR. Complete guide translation: yes.

## Overview (en)

JSON diff compares two JSON values and shows the lines that were added, removed or left unchanged. Paste the original into the main box and the second version into the Compare with JSON field. Both are parsed first, and object keys are put in sorted order, so a different key order alone does not count as a change.

## Supported tasks (pt-BR)

Compare dois valores JSON e veja suas diferenças.

## Steps (pt-BR)

1. Cole a fonte no editor de entrada ou carregue o exemplo integrado.
2. Configure a comparação com JSON.
3. Execute a comparação de diferenças JSON, revise a saída e use os controles disponíveis para copiar ou baixar.

## Settings

- Comparar com JSON (pt-BR; key: comparison; type: textarea)

## Limitations (pt-BR)

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.

## Example input

```text
{"name":"ToolCabana","count":2}
```

## Privacy and connections (pt-BR)

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

## Questions (pt-BR)

### How do I compare two JSON files?

Paste the first JSON document into the input and the second into the Compare with JSON setting, then run the tool. Lines that exist only in the second version start with a plus sign and removed lines with a minus sign.

### Does JSON diff ignore key order?

Yes. Both values are serialized with their object keys sorted before comparison, so two objects with the same keys and values in a different order produce no differences.

### What if one of the JSON inputs is invalid?

Both sides must be strict JSON. If either one fails to parse, the tool shows the parsing error with a line and column instead of a partial comparison.

### Onde minha entrada é processada?

Esta operação processa sua fonte no seu navegador. Copiar e baixar são ações explícitas; a entrada de origem não é salva em conta nem em histórico.

### Quais são os limites de entrada?

As operações de texto aceitam geralmente até 2,000,000 caracteres. Analisadores, geradores e fórmulas individuais aplicam limites adicionais mostrados pelos seus controles.

## Related tools

- [JSON minifier](https://www.toolcabana.com/pt-br/json-minifier)
- [JSON to CSV](https://www.toolcabana.com/pt-br/json-to-csv)
- [JSON validator](https://www.toolcabana.com/pt-br/json-validator)
- [CSV to JSON](https://www.toolcabana.com/pt-br/csv-to-json)
