Skip to content

Kirby 6.0.0

$areas->toJson()

Converts the object into a JSON string

$areas->toJson(): string

Return type

string

Exceptions

Type Description
JsonException for invalid JSON

Parent class

Kirby\Panel\Areas inherited from Kirby\Toolkit\Collection