JsonSerializable
PHP Manual

JsonSerializable::jsonSerialize

(PHP 5 >= 5.4.0)

JsonSerializable::jsonSerializeSpecify data which should be serialized to JSON

Description

abstract public mixed JsonSerializable::jsonSerialize ( void )

Warning

This function is currently not documented; only its argument list is available.

Parameters

This function has no parameters.

Return Values

Return data which should be serialized by json_encode().


JsonSerializable
PHP Manual