← Back to list

json-to-xml-converter
by tkubica12
⭐ 9🍴 14📅 Jan 6, 2026
SKILL.md
name: json-to-xml-converter description: Convert JSON data to XML format with customizable root element and attribute handling
JSON to XML Converter Skill
Purpose
Convert JSON data structures into well-formed XML documents. Handles nested objects, arrays, and primitive types.
Usage
Command Line
# Basic conversion
python .github/skills/json-to-xml-converter/scripts/json2xml.py input.json output.xml
# Custom root element
python .github/skills/json-to-xml-converter/scripts/json2xml.py input.json output.xml --root "data"
# Pipe data
echo '{"name": "test"}' | python .github/skills/json-to-xml-converter/scripts/json2xml.py - -
Parameters
input_file: Path to JSON file or-for stdinoutput_file: Path to XML output file or-for stdout--root: Root element name (default: "root")
Example
Input JSON:
{"user": {"name": "Alice", "age": 30}, "items": [1, 2, 3]}
Output XML:
<?xml version="1.0" encoding="utf-8"?>
<root>
<user>
<name>Alice</name>
<age>30</age>
</user>
<items>
<item>1</item>
<item>2</item>
<item>3</item>
</items>
</root>
Agent Integration
Use run_in_terminal to invoke the script:
python .github/skills/json-to-xml-converter/scripts/json2xml.py input.json output.xml --root "mydata"
Important Notes:
- No external dependencies (Python stdlib only)
- JSON keys with spaces are converted to underscores
- Arrays become
<item>elements - Handles invalid JSON with clear error messages
Score
Total Score
55/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
✓フォーク
10回以上フォークされている
+5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon