$lazyCollection->toJson()
Converts the object into a JSON string
$lazyCollection->toJson(): string
Return type
string
Exceptions
| Type | Description |
|---|---|
JsonException |
for invalid JSON |
Parent class
Kirby\Cms\LazyCollection
inherited from Kirby\Toolkit\Collection