Convert XML to JSON (meant to emulate current behavior of a part of dimagi/couchforms)