PS: Argh, sorry... pressed the send button without finishing to write the email.
Consistency that matches with Serializable interface when dealing with (un)serialize(). So if we have to vote, I'd go for Jsonable. The method should be renamed to _toJSON (I can even accept __toJson here), using the same convention applied for __sleep, __toString, __wakeup, __invoke. Cheers, On Thu, May 6, 2010 at 2:41 PM, Guilherme Blanco <guilhermebla...@gmail.com> wrote: > Hi guys, > > > I'd like to thank you for this implementation. > > @Pierre: There is a RFC I wrote: http://wiki.php.net/rfc/jsonable > > I'd suggest to rather be JSONSerializable or be Jsonable. > > JSON is an acronym, the same as PDO. We don't have interface for Pdo, > but for PDO. > So we should keep consistency. > > > Cheers, > > > On Thu, May 6, 2010 at 8:37 AM, Pierre Joye <pierre....@gmail.com> wrote: >> On Thu, May 6, 2010 at 12:59 PM, Hannes Magnusson >> <hannes.magnus...@gmail.com> wrote: >>> On Thu, May 6, 2010 at 00:48, Sara Golemon <poll...@php.net> wrote: >>>> pollita Wed, 05 May 2010 22:48:14 +0000 >>>> >>>> Revision: http://svn.php.net/viewvc?view=revision&revision=299037 >>>> >>>> Log: >>>> Add JSON_Serializable interface >>> >>> Slight bikeshedding.. but we don't use underscore for >>> interface/classnames... >> >> And I would go with JsonSerializable. >> >> However, where does it come from? Does it have to be an interface or >> why not using __toJson? I must have lived under a rock as I don't see >> any proposal either, be RFC or internals. >> >> Cheers, >> -- >> Pierre >> >> @pierrejoye | http://blog.thepimp.net | http://www.libgd.org >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > > > -- > Guilherme Blanco - Web Developer > CBC - Certified Bindows Consultant > Cell Phone: +55 (16) 9215-8480 > MSN: guilhermebla...@hotmail.com > URL: http://blog.bisna.com > São Paulo - SP/Brazil > -- Guilherme Blanco - Web Developer CBC - Certified Bindows Consultant Cell Phone: +55 (16) 9215-8480 MSN: guilhermebla...@hotmail.com URL: http://blog.bisna.com São Paulo - SP/Brazil -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php