Convert XML into JSON, collapsing repeated elements into arrays.
Repeated sibling elements collapse into an array automatically. Text that looks like a number or boolean is converted to that type.