Zend\Json\Json::_recursiveJsonExprFinder
Check & Replace Zend\Json\Expr for tmp ids in the valueToEncode
Check if the value is a Zend\Json\Expr, and if replace its value with a magic key and save the javascript expression in an array. NOTE this method is recursive. NOTE: This method is used internally by the encode method.
Signature
protected function _recursiveJsonExprFinder(mixed&
$value,
[array&
$javascriptExpressions = null,
[null|string|int
$currentKey = null]] )
Parameters
$value
— mixed- a string - object property to be encoded
$javascriptExpressions
— array$currentKey
— object
Returns
- mixed
Line | Task |
---|---|
166 | Optimize with ascii keys, if performance is bad |