json support implemented for xml_api