HF RL Explorer

Task: Converting XML to JSON using Python

Task: Converting XML to JSON using Python: a task in Terminal-Lego-15k (Harbor dataset). Write a Python script that converts an XML document into a JSON representation. The script should handle typical XML structures including nested elements, attributes, and text content, producing a well-formed…

The task

Write a Python script that converts an XML document into a JSON representation. The script should handle typical XML structures including nested elements, attributes, and text content, producing a well-formed JSON output file.

Part of PrimeIntellect/Terminal-Lego-15k.