Fix bug on webservice so that webclient can read json sent by the webservice