main: add support for parsing results obtained from the webservice