{someArray -> f:format.json()}
{f:format.json(value: {foo: 'bar', bar: 'baz'})}
{f:format.json(value: {0: 'bar', 1: 'baz'}, forceObject: true)}
Mostrar archivo
Open project: neos/flow-development-collection
Class Usage Examples
Property | Type | Description | |
---|---|---|---|
$escapeChildren | boolean |
Method | Description | |
---|---|---|
render ( mixed $value = null, boolean $forceObject = false ) : string | Outputs content with its JSON representation. To prevent issues in HTML context, occurrences of greater-than or less-than characters are converted to their hexadecimal representations. | |
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string | Applies json_encode() on the specified value. |
public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string | ||
$arguments | array | |
$renderChildrenClosure | Closure | |
$renderingContext | TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface | |
return | string |