- Исполнители
-
Обучение
Учебный центр Python Запускаемые примеры, NumPy, pandas и другое Учебный центр C и C++ Указатели, память, STL и современный C++ Учебный центр C#Основы C#, ООП, LINQ, async и упражнения .NET Алгоритмы на Python Поиск, сортировка, рекурсия и визуализация O(n) Алгоритмы на C и C++ Сравнение реализаций на C и C++
- Задачи
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.
Практикуйте Python на задачах
Решайте задачи прямо в редакторе: запускайте тесты, отправляйте решение и получайте AI-рецензию.