Re: [PHP-DEV] Re: Jsonable interface

2010-05-18 Thread Mathias Grimm
I had an php 5.3 branch, now i checkout the trunk and can see the jsonSerializable. On Tue, May 18, 2010 at 6:56 PM, Sara Golemon wrote: > I didn't say that I didn't understand the purpose of it. I said that it > provides less functionality than what we already have implemented. > > -- Mathia

Re: [PHP-DEV] Re: Jsonable interface

2010-05-18 Thread Sara Golemon
I didn't say that I didn't understand the purpose of it. I said that it provides less functionality than what we already have implemented. Mathias Grimm wrote: _json function to override properties and jsonIgore properties when call json_encode($obMyClass) the __json and __jsonIgore will be c

Re: [PHP-DEV] Re: Jsonable interface

2010-05-18 Thread Mathias Grimm
_json function to override properties and jsonIgore properties when call json_encode($obMyClass) the __json and __jsonIgore will be called. if a class is jsonable, this means that all properties will be encoded, except properties on the ignore list > This seems to be an attempt to solve a subse

[PHP-DEV] Re: Jsonable interface

2010-05-18 Thread Sara Golemon
Mathias Grimm wrote: If php have annotations feature its be very simple. Transient private $dtCreated;// or JsonIgnore or JsonTransient [*snip*] This seems to be an attempt to solve a subset of the problem solved by JSONSerializable, but from a negation rather than a explicit orientatio