= Examples =
{someArray -> f:format.json()}
{f:format.json(value: {foo: 'bar', bar: 'baz'})}
{f:format.json(value: {0: 'bar', 1: 'baz'}, forceObject: true)}
/** * @test */ public function viewHelperEscapesGreaterThanLowerThanCharacters() { $this->assertEquals('["\\u003Cfoo\\u003E","bar","elephant \\u003E mouse"]', $this->viewHelper->render(array('<foo>', 'bar', 'elephant > mouse'))); $this->assertEquals('{"0":"\\u003Cfoo\\u003E","1":"bar","2":"elephant \\u003E mouse"}', $this->viewHelper->render(array('<foo>', 'bar', 'elephant > mouse'), true)); }