Extract the XML body of an OT contract and convert it to JSON