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