Skip to content

Kirby 5.0.4

$body->data()

Parses the raw contents once and caches the result. The parser will try to convert the body with the json decoder first and then run parse_str to get some results if the json decoder failed.

$body->data(): array

Return type

array

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

Parent class

Kirby\Http\Request\Body