ToolCabana

Convertitore da JSON a XML

Converte JSON con regole esplicite per l'elemento radice e gli elementi di array.

Favorites are saved in this browser. Find them in My favorites.

Convertitore da JSON a XML

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

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.

  1. Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
  2. Imposta l'elemento radice.
  3. 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.