public static function respondJson($responseID, $responseData = array()) { if (!static::checkAPIAccess($responseID, $responseData, 'json')) { return static::throwAPIUnauthorizedError(); } return parent::respondJson($responseID, $responseData); }