Skip to content

Kirby 5.0.1

$responder->json()

Shortcut to configure a json response

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

Parameters

Name Type Default
$json arrayornull null

Return types

stringorKirby\Cms\Responder

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

Parent class

Kirby\Cms\Responder