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