Loading data.
PAGE CONTENTS
Display settings
Wrapper for PHPs json_encode function. See https://www.php.net/manual/function.json-encode.php.
json_encode
{someArray -> f:format.json()}
["array","values"] Depending on the value of {someArray}.
["array","values"]
{someArray}
{f:format.json(value: {foo: 'bar', bar: 'baz'})}
{"foo":"bar","bar":"baz"}
{f:format.json(value: {0: 'bar', 1: 'baz'}, forceObject: true)}
{"0":"bar","1":"baz"}
mixed
false
The incoming data to convert, or null if VH children should be used
Outputs an JSON object rather than an array