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

JSON Schema Generator

Turn a document you already have into a JSON Schema that describes it, and see which keys the sample says are optional.

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

    A schema generated from a sample is a description of what was in the sample, not a specification, and this page treats it that way. An array is read as a list of records and every element is merged into one description, so a key missing from any record comes back as not required rather than quietly required. A field that is a whole number everywhere is called an integer, and one fraction anywhere makes it a number. A string format is only claimed when every string in that position matched the same pattern, which is what stops one lucky value from turning a free text field into a date. Two genuinely different types in one position become a type array. What this cannot do is know about the records you did not paste, so read the output as a starting point and widen it where your data is looser than your sample.

    Como usar

    1. Paste a document, or several records in an array, into the input pane.
    2. Choose the draft, and whether to detect string formats and mark required keys.
    3. Copy the schema or download it as a file.