- ตัวดำเนินการ
-
เรียนรู้
ศูนย์การเรียนรู้ Python ตัวอย่างที่รันได้, NumPy, pandas และอื่น ๆ ศูนย์การเรียนรู้ C และ C++ พอยน์เตอร์ หน่วยความจำ STL และ C++ สมัยใหม่ ศูนย์การเรียนรู้ C#พื้นฐาน C#, OOP, LINQ, async และแบบฝึกหัด .NET อัลกอริทึม Python การค้นหา การเรียงลำดับ รีเคอร์ชัน และภาพจำลอง O(n) อัลกอริทึม C และ C++ เปรียบเทียบการเขียนด้วย C และ C++
- โจทย์
Converters
JSON to XML Converter
Turn JSON into well-formed, indented XML, with attributes and repeated elements.
- Runs in your browser
- Instant results
- Free, no sign-up
Loading the tool…
How to use the JSON to XML Converter
- Paste your JSON.
- Set the root element name, attribute prefix and indentation.
- Copy or download the XML.
Frequently asked questions
How do I create XML attributes?
Prefix a key with @ (or your chosen prefix): {"@id": 1} becomes id="1" on the element.
How are arrays converted?
Each array item becomes a repeated element with the key as its name.
Are special characters escaped?
Yes. &, <, > and quotes are escaped, and invalid element names are made safe.
ฝึก Python ด้วยโจทย์เขียนโค้ด
แก้โจทย์จริงใน editor นี้: รันทดสอบตัวอย่าง ส่งคำตอบ และรับรีวิวโค้ดจาก AI