Figured out how to convert XML to JSON, finally.