[#49] Ensure json is generated from compatible XML