Skip to content

Kirby 4.2.0

$nestcollection->toJson()

Converts the object into a JSON string

$nestcollection->toJson(): string

Return type

string

Parent class

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