- Executores
-
Aprender
Central de aprendizagem Python Exemplos executáveis, NumPy, pandas e mais Central de aprendizagem C e C++ Ponteiros, memória, STL e C++ moderno Central de aprendizagem C#Fundamentos, POO, LINQ, async e exercícios .NET Algoritmos em Python Busca, ordenação, recursão e visualizações O(n) Algoritmos em C e C++ Compare implementações em C e C++
- Desafios
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.
Pratique Python com desafios de código
Resolva problemas práticos direto neste editor: rode os testes de exemplo, envie sua solução e receba uma revisão de código por IA.