Skip to content

Kirby 4.2.0

$segments->toJson()

Converts the object into a JSON string

$segments->toJson(): string

Return type

string

Parent class

Kirby\Query\Segments inherited from Kirby\Toolkit\Collection