Convertitore da JSON a XML
Converte JSON con regole esplicite per l'elemento radice e gli elementi di array.
Convertitore da JSON a XML
Come usare Convertitore da JSON a XML
JSON to XML converts a JSON value into an XML document with a UTF-8 declaration and a root element you name, with root as the default. Object keys become element names, array entries become item elements, null values become empty elements, and text is escaped. Keys must be valid simple XML names, and nesting is limited to 100 levels.
- Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
- Imposta l'elemento radice.
- Esegui il convertitore da JSON a XML, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.
Cosa supporta questo strumento
Converte JSON con regole esplicite per l'elemento radice e gli elementi di array.
- Elemento radice
- Set this value for your task.
Limiti ed elaborazione
L'input multimediale è limitato a 50 MB per file e 100 MB complessivi. Le conversioni WebAssembly hanno un limite di 180 secondi e possono richiedere molta memoria del browser.
Origine di esempio
{"name":"ToolCabana","items":[1,2]}Domande frequenti
How are JSON arrays converted to XML?
Each array is wrapped in an element named after its key, and every entry inside becomes an item element. For example, "items":[1,2] becomes an items element containing two item elements with the values 1 and 2.
Why does JSON to XML say my keys are invalid?
XML element names must start with a letter or underscore and may contain only letters, digits, underscores, periods and hyphens. JSON keys with spaces, symbols or a leading digit trigger this error, so rename them first.
Can I change the root element name in the XML?
Yes. Enter a name in the Root element setting; the default is root. The name must follow the same rules as other element names, starting with a letter or underscore.
Dove viene elaborato il mio input?
Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.
Quali sono i limiti di input?
L'input multimediale è limitato a 50 MB per file e 100 MB complessivi. Le conversioni WebAssembly hanno un limite di 180 secondi e possono richiedere molta memoria del browser.