Zend\Json\Encoder::_encodeDatum
JSON encode a basic data type (string, number, boolean, null)
If value type is not a string, number, boolean, or null, the string 'null' is returned.
Signature
protected function _encodeDatum(mixed&
$value )
Parameters
$value
— mixed
Returns
- string