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