code: function parseData(json, callback) {
  		try {
  			var data = JSON.parse(json);
  			if (data && data.hasOwnProperty('result'))
  				doCallback(callback.success, data.result);
  			else if (data && data.hasOwnProperty('error') && data.error)
  				doCallback(callback.error, error(data.error.message, data.error.code, null));
  			else
  				doCallback(callback.error, error("INVALID_RESPONSE", -1, {
  					responses: json.toString()
  				}));
  		}
  		catch (e) {
  			doCallback(callback.error, error("INVALID_RESPONSE", -1, {
  				exception: e,
  				response: json.toString()
  			}));
  		}
  	}
docs: Response analysis