» Version | » Information |
---|---|
1.0.3 |
Easy InstallNot sure? Get more info. pear install Services_JSON-1.0.3 Pyrus InstallTry PEAR2's installer, Pyrus. php pyrus.phar install pear/Services_JSON-1.0.3 Release date: 2011-01-14 03:43 UTC Release state: stable Release uploaded by: alan_k Changelog: Minor feature / bugfix release #18018 - toJSON() support (classes can now implement toJSON(), which should return #17921 - long strings cause problems for parser #17515 - handle mbstring overloading of strlen ------ - cache lookups for mb functions during constructor toJSON notes: $ser = new Services_JSON( SERVICES_JSON_USE_TO_JSON ); class A { // toJSON should return an associtive array of the properties to serialize // same standard as JSON.stringify() function toJSON() { return array( 'a' => $this->a, 'b'=>$this->b) ; } } echo $sj->encode(new A()); Dependencies:
|
2010-01-02 stable |
|
2009-09-09 stable |
|
2009-05-23 stable |
|
2009-03-17 beta |