Convert JSON objects to XML documents and XML back to JSON. Supports custom root element tags, nested structures, arrays, and automatic type inference for numbers, booleans, and null values.