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

JSON to YAML Converter

Convert between JSON and YAML without either document leaving your browser.

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.

    JSON

    Carregar de uma URL

    Busca a URL diretamente do seu navegador.

    YAML

    O resultado aparece aqui.

    Funciona inteiramente no seu navegador.

    Sobre esta ferramenta

    YAML is a larger language than JSON, so this converts the subset that JSON can hold and refuses the rest by name rather than mangling it. Writing, a mapping becomes one key per line and an array repeats its key or dash per item, a string is quoted only when it would otherwise read as a number, a boolean, a null or a YAML indicator, and a null becomes a key with no value; an array can also be written as its own multi-document stream, one --- separated document per element, instead of one sequence, an explicit choice rather than the default, since an ordinary array gives no signal on its own for which reading was meant. Reading, a mapping, a sequence, a quoted string, a block scalar, a flow collection and a folded plain scalar are all read, an anchor and the aliases that point at it are resolved by copying the anchored value to every place that refers to it, and a stream of more than one --- separated document comes back as a JSON array, one element per document; tags and complex mapping keys are still refused by name. A plain scalar folds across the more indented lines that belong to it, and a line that turns out to open a block instead is refused rather than swallowed, because YAML cannot continue a plain scalar with an indicator. Numbers travel through the token stream, so a twenty digit integer comes back with all twenty digits, anchored or not.

    Como usar

    1. Choose a direction, then paste your document into the left pane or load the sample.
    2. Pick the indent width, then press Convert.
    3. Copy the result or download it as a file.