Skip to content

Kirby 4.2.0

$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