Skip to content

Kirby 6.0.0

$versions->toJson()

Converts the object into a JSON string

$versions->toJson(): string

Return type

string

Exceptions

Type Description
JsonException for invalid JSON

Parent class

Kirby\Content\Versions inherited from Kirby\Toolkit\Collection