Skip to content

Kirby 4.4.1

$collection->toJson()

Converts the object into a JSON string

$collection->toJson(): string

Return type

string

Parent class

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