Zend\Json\Encoder::_encodeValue
Recursive driver which determines the type of value to be encoded and then dispatches to the appropriate method. $values are either - objects (returns from {@link _encodeObject()}) - arrays (returns from {@link _encodeArray()}) - basic datums (e.g. numbers or strings) (returns from {@link _encodeDatum()})
Signature
protected function _encodeValue(mixed&
$value )
Parameters
$value
— mixed- The value to be encoded
Returns
- string
- Encoded value