Zend\Json\Encoder::_encodeObject
Encode an object to JSON by encoding each of the public properties
A special property is added to the JSON object called '__className' that contains the name of the class of $value. This is used to decode the object on the client into a specific class.
Signature
Parameters
$value
— object
Returns
- string
Errors/Exceptions
-
RecursionException
- If recursive checks are enabled and the