PHP Class Neos\Eel\Helper\JsonHelper

Inheritance: implements Neos\Eel\ProtectedContextAwareInterface
Datei anzeigen Open project: neos/flow-development-collection Class Usage Examples

Public Methods

Method Description
allowsCallOfMethod ( string $methodName ) : boolean All methods are considered safe
parse ( string $json, boolean $associativeArrays = true ) : mixed JSON decode the given string
stringify ( mixed $value ) : string JSON encode the given value

Method Details

allowsCallOfMethod() public method

All methods are considered safe
public allowsCallOfMethod ( string $methodName ) : boolean
$methodName string
return boolean

parse() public method

JSON decode the given string
public parse ( string $json, boolean $associativeArrays = true ) : mixed
$json string
$associativeArrays boolean
return mixed

stringify() public method

JSON encode the given value
public stringify ( mixed $value ) : string
$value mixed
return string