Skip to content

Kirby 6.0.1

$nestCollection->toJson()

Converts the object into a JSON string

$nestCollection->toJson(): string

Return type

string

Exceptions

Type Description
JsonException for invalid JSON

Parent class

Kirby\Cms\NestCollection inherited from Kirby\Toolkit\Collection