Skip to content

Kirby 4.2.0

$body->toJson()

Converts the data array to json

$body->toJson(): string

Return type

string

Parent class

Kirby\Http\Request\Body