xml-json workaround