Format.json ViewHelper <f:format.json> 

Wrapper for PHPs json_encode function. See https://www.php.net/manual/function.json-encode.php.

Go to the source code of this ViewHelper: Format\JsonViewHelper.php (GitHub).

Arguments of the <f:format.json> ViewHelper 

forceObject

forceObject
Type
bool
Default
false
Outputs an JSON object rather than an array

value

value
Type
mixed
The incoming data to convert, or null if VH children should be used