[webservice] response as json if asked to