Skip to content

Kirby 6.0.0

$responder->json()

Shortcut to configure a json response

$responder->json(array|null $json = null): Responder

Parameters

Name Type Default
$json arrayornull null

Return type

Kirby\Cms\Responder

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

Parent class

Kirby\Cms\Responder