- Ejecutores
-
Aprender
Centro de aprendizaje de Python Ejemplos ejecutables, NumPy, pandas y más Centro de aprendizaje de C y C++ Punteros, memoria, STL y C++ moderno Centro de aprendizaje de C#Fundamentos, POO, LINQ, async y ejercicios de .NET Algoritmos en Python Búsqueda, ordenación, recursión y visualizadores O(n) Algoritmos en C y C++ Compara implementaciones en C y C++
- Retos
Converters
XML to JSON Converter
Convert XML documents to readable JSON, keeping attributes and turning repeated elements into arrays.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the XML to JSON Converter
- Paste your XML.
- Choose the attribute prefix and whether to detect numbers and booleans.
- Copy or download the JSON.
Frequently asked questions
How are XML attributes represented?
As keys with a prefix, @ by default, so <book id="1"> becomes {"@id": 1}.
What happens to repeated elements?
Elements that appear more than once under the same parent become a JSON array.
What if an element has both text and children?
The text is kept under a "#text" key next to the child elements.
Practica Python con desafíos de código
Resuelve problemas prácticos en este editor: ejecuta las pruebas de ejemplo, envía tu solución y recibe una revisión de código por IA.