]> granicus.if.org Git - php/commit
Add JSON_Serializable interface
authorSara Golemon <pollita@php.net>
Wed, 5 May 2010 22:48:14 +0000 (22:48 +0000)
committerSara Golemon <pollita@php.net>
Wed, 5 May 2010 22:48:14 +0000 (22:48 +0000)
commit1381b14eaaa6d0f3dcbc9b9a2c8116c2ecfac2c4
tree391ccb74279359f866529bd6a71f4c854bca9b92
parent2b4539fcef1b59d4073c2be8043a3e4c288be852
Add JSON_Serializable interface
Objects implementing JSON_Serializable will have
their ->jsonSerialize() method called

Similar to serialize() and __sleep()
NEWS
ext/json/json.c
ext/json/php_json.h
ext/json/tests/serialize.phpt [new file with mode: 0644]