Edit report at https://bugs.php.net/bug.php?id=45690&edit=1

 ID:                 45690
 Comment by:         ya at helldude dot ru
 Reported by:        j dot stutterheim at hccnet dot nl
 Summary:            json_encode to support Serializable and __sleep
 Status:             Closed
 Type:               Feature/Change Request
 Package:            *General Issues
 Operating System:   OS X 10.5.4
 PHP Version:        5.2.6
 Assigned To:        johannes
 Block user comment: N
 Private report:     N

 New Comment:

perfect idea! php require it functional.


Previous Comments:
------------------------------------------------------------------------
[2010-12-22 13:51:43] johan...@php.net

Trunk has support for this via the JsonSerializable interface.

------------------------------------------------------------------------
[2008-08-02 17:35:21] j dot stutterheim at hccnet dot nl

Description:
------------
In order to easily serialize objects, without resorting to public 
attributes, it would be nice if json_encode() would support Serializable 
and __sleep. It currently does not take these into account.



------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=45690&edit=1

Reply via email to