XML a JSON
Convierte XML en JSON gestionando atributos y elementos repetidos de forma sensata.
Entrada
Resultado
Cómo usar
Converting XML to JSON
Press Convert to obtain a JSON representation. Attributes use the at sign prefix.
- Paste XML into the input editor.
- Press Convert.
- Copy the JSON output.
Preguntas frecuentes
How are attributes represented?
Each attribute becomes a property named with an at sign, for example at id.
How are repeated elements handled?
When the same tag appears more than once at one level the values are collected into an array.
Herramientas relacionadas
JSON a XML
Convierte un documento JSON en XML bien formado con un elemento raíz configurable.
Formateador XML
Imprime XML con sangría uniforme y ajuste de atributos opcional.
YAML a JSON
Convierte documentos YAML en JSON para API y aplicaciones JavaScript.
Formateador YAML
Analiza y vuelve a serializar YAML con sangría uniforme y validación.
Validador YAML
Valida la sintaxis YAML y obtén un error preciso cuando la sangría o la estructura son incorrectas.
Validador XML
Comprueba que un documento XML esté bien formado y muestra una descripción clara del error.