JSON a XML
Convierte JSON con reglas explícitas de raíz y de elementos de matriz.
JSON a XML
Cómo usar 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.
- Pega la fuente en el editor de entrada o carga el ejemplo integrado.
- Configura el elemento raíz.
- Ejecuta la conversión de JSON a XML, revisa la salida y usa los controles disponibles para copiar o descargar.
Qué admite esta herramienta
Convierte JSON con reglas explícitas de raíz y de elementos de matriz.
- Elemento raíz
- Set this value for your task.
Límites y procesamiento
La entrada de medios está limitada a 50 MB por archivo y 100 MB en total. Las conversiones WebAssembly tienen un límite de 180 segundos y pueden requerir mucha memoria del navegador.
Fuente de ejemplo
{"name":"ToolCabana","items":[1,2]}Preguntas frecuentes
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.
¿Dónde se procesa mi entrada?
Esta operación procesa su fuente en tu navegador. Copiar y descargar son acciones explícitas; la entrada de origen no se guarda en una cuenta ni en un historial.
¿Cuáles son los límites de entrada?
La entrada de medios está limitada a 50 MB por archivo y 100 MB en total. Las conversiones WebAssembly tienen un límite de 180 segundos y pueden requerir mucha memoria del navegador.