{someArray -> f:format.json()}
{f:format.json(value: {foo: 'bar', bar: 'baz'})}
{f:format.json(value: {0: 'bar', 1: 'baz'}, forceObject: true)}
파일 보기
프로젝트 열기: neos/flow-development-collection
1 사용 예제들
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$escapeChildren | boolean |
메소드 | 설명 | |
---|---|---|
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. |