>_ XML to JSON

Parse XML and convert it to a JSON object. Handles attributes, text nodes and nested elements.