Convertitore da YAML a JSON
Converte YAML in JSON nel suo browser. Supporta mappe annidate, elenchi, stringhe, numeri e valori booleani.
Come usare questo strumento
- 1
Paste or type your YAML into the input box, using spaces (not tabs) for indentation.
- 2
Read the pretty-printed JSON that appears below the box as you type.
- 3
If a red error message shows instead, check your indentation and remove unsupported syntax.
- 4
Select and copy the JSON output to paste into your config, code, or API client.
Che cos'è il convertitore da YAML a JSON?
YAML e JSON sono formati di interscambio di dati che possono rappresentare le stesse strutture. YAML è più leggibile per le persone (senza parentesi graffe né virgolette), ma JSON è analizzabile in modo più universale. La conversione tra i due è comune per i file di configurazione (GitHub Actions, Docker Compose) quando ha bisogno di fornire dati a strumenti che accettano solo JSON.
Casi d'uso comuni
Quickly turning a small docker-compose.yml or GitHub Actions snippet into JSON to inspect its structure.
Converting a hand-written config block into JSON to paste into a tool or API that only accepts JSON.
Checking how YAML scalars like true, 123, or ~ get typed once they become JSON values.
Sanity-checking indentation in a YAML fragment by seeing whether the nesting comes out as you expect.
Generating seed JSON fixtures for tests from a more readable YAML draft.
Teaching or learning the mapping between YAML structures and their JSON equivalents.
Domande frequenti
Sono supportate le funzionalità avanzate di YAML?▼
Strumenti correlati
Decodificatore di JWT
Decodifica i JSON Web Token (JWT) all'istante. Viene eseguito nel suo browser: i token non lasciano mai il suo dispositivo, quindi è sicuro usarlo con segreti di produzione.
Formattatore e validatore di JSON
Formatta, valida e minifica JSON online. Funziona interamente nel suo browser: i suoi dati non lasciano mai il suo dispositivo.
Formattatore di XML
Formatta e abbellisce i documenti XML. Utile per SOAP, sitemap, feed RSS e file di configurazione.
Codificatore e decodificatore Base64
Codifica le stringhe in Base64 o decodifica il Base64 in testo. Rispetta la sua privacy: viene eseguito nel suo browser.
Codificatore e decodificatore di URL
Converte il testo in codifica sicura per URL (codifica percentuale) e viceversa. Utile per stringhe di query, reindirizzamenti e flussi OAuth.
Codificatore e decodificatore di entità HTML
Converte i caratteri speciali in entità HTML (&, <, ecc.) e viceversa. Utile per incorporare testo in HTML in modo sicuro.