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