Skip to content

Kirby 4.4.1

Panel::json()

Returns a JSON response for Fiber calls

Panel::json(array $data, int $code = 200): Kirby\Http\Response

Parameters

Name Type Default
$data * array
$code int 200

Return type

Kirby\Http\Response

Parent class

Kirby\Panel\Panel