Adding error handling for JSON parsing in webservice controller