Skip to content

Kirby 4.2.0

$fields->toJson()

Converts the object into a JSON string

$fields->toJson(): string

Return type

string

Parent class

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