Skip to content

Kirby 6.0.0

$items->toJson()

Converts the object into a JSON string

$items->toJson(): string

Return type

string

Exceptions

Type Description
JsonException for invalid JSON

Parent class

Kirby\Cms\Items inherited from Kirby\Toolkit\Collection