$collection->toJson() Converts the object into a JSON string kirby/src/Toolkit/Collection.php#L1136 $collection->toJson(): string Return type string Parent class Kirby\Cms\Collection inherited from Kirby\Toolkit\Collection