$visitor->prefersJson() Returns true if the visitor prefers a JSON response over an HTML response based on the Accept request header kirby/src/Http/Visitor.php#L190 $visitor->prefersJson(): bool Return type bool Parent class Kirby\Http\Visitor