Skip to content

Kirby 5.1.2

$fieldsets->toJson()

Converts the object into a JSON string

$fieldsets->toJson(): string

Return type

string

This method modifies the existing $fieldsets object it is applied to and returns it again.

Parent class

Kirby\Cms\Fieldsets inherited from Kirby\Toolkit\Collection