Pular para o conteudo principal
CuteJSON
↑↓ Navegar Enter Selecionar Esc Fechar

JSON Key Sorter

Put the keys of every object in order so two versions of the same document can be read side by side.

Voltar para todas as ferramentas

Atalhos de teclado

Estes funcionam onde a acao correspondente existe nesta pagina.

Abrir a paleta de comandos
Ctrl/Cmd + K
Executar a acao principal
Ctrl/Cmd + Enter
Formatar
Ctrl/Cmd + Shift + F
Minimizar
Ctrl/Cmd + Shift + M
Copiar saida
Ctrl/Cmd + Shift + C
Abrir arquivo
Ctrl/Cmd + Shift + O
Baixar saida
Ctrl/Cmd + S
Fechar este dialogo
Esc
Abrir este dialogo
F1 / ?

Dados locais

Tudo abaixo e armazenado apenas neste navegador, neste dispositivo. Nada e enviado a lugar nenhum, e fechar este dialogo nao e necessario para que isso continue verdade.

Rascunhos nao salvos
Ferramentas com opcoes lembradas

Arquivos abertos recentemente

    Nenhum arquivo aberto ainda neste dispositivo.

    Compartilhar via link

    O conteudo e empacotado na parte do link apos o #, que navegadores nunca enviam a um servidor.

    Compartilha a primeira entrada nesta pagina.

    Nada para compartilhar ainda.

    Entrada

    Carregar de uma URL

    Busca a URL diretamente do seu navegador.

    Saida

    O resultado aparece aqui.

    Funciona inteiramente no seu navegador.

    Sobre esta ferramenta

    Sorting keys is what makes two versions of a document comparable. Configuration written by hand and configuration written by a program hold the same data in a different order, and a text diff on the pair is unreadable until both sides are sorted the same way. Only object keys move here. An array is left exactly as it was, because the order of an array is part of the data, and a tool that quietly sorted arrays as well would change what a document means while claiming to tidy it. Comparison is by code unit by default, which puts capitals before lower case and 10 before 2. The option to read digit runs as numbers fixes the second of those, and is written out here rather than handed to the browser, since a comparison that follows the page language would sort the same file differently in each of this site four languages. Duplicate keys survive as duplicates, side by side.

    Como usar

    1. Paste your JSON into the input pane, or load the sample.
    2. Choose the order and the indent width, then press Sort keys.
    3. Copy the result or download it as a file.