Skip to content

Kirby 3.5.7.1

$responder->json()

Shortcut to configure a json response

$responder->json(array $json = null): string|Kirby\Cms\Responder

Parameters

Name Type Default
$json array null

Return type

string|Kirby\Cms\Responder

This method modifies the existing $responder object it is applied to and returns it again.

Parent class

Kirby\Cms\Responder