Skip to content

Kirby 4.5.0

$collection->toJson()

Converts the object into a JSON string

$collection->toJson(): string

Return type

string

Parent class

Kirby\Blueprint\Collection inherited from Kirby\Toolkit\Collection