Skip to content

Kirby 6.0.0

$fields->toJson()

Converts the object into a JSON string

$fields->toJson(): string

Return type

string

Exceptions

Type Description
JsonException for invalid JSON

Parent class

Kirby\Form\Fields inherited from Kirby\Toolkit\Collection