Converter between xml and json