[ANNOUNCEMENT] Services_JSON-1.0.3 (stable) Released.
| From: | PEAR Announce | Date: | Fri, 14 Jan 2011 03:43:55 +0000 |
| Subject: | [ANNOUNCEMENT] Services_JSON-1.0.3 (stable) Released. | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-30916@lists.php.net to get a copy of this message | ||
The new PEAR package Services_JSON-1.0.3 (stable) has been released at http://pear.php.net/.
Release notes
-------------
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());
Package Info
------------
JSON (JavaScript Object Notation, http://json.org) is a lightweight
data-interchange format.
It is easy for humans to read and write. It is easy for machines to parse and generate.
It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition -
December 1999.
This feature can also be found in Python. JSON is a text format that is completely language
independent
but uses conventions that are familiar to programmers of the C-family of languages, including
C, C++, C#, Java, JavaScript, Perl, TCL, and many others. These properties make JSON an ideal
data-interchange language.
This package provides a simple encoder and decoder for JSON notation. It is intended for use
with client-side Javascript applications that make use of HTTPRequest to perform server
communication functions - data can be encoded into JSON notation for use in a client-side
javascript, or decoded from incoming Javascript requests. JSON format is native to Javascript,
and can be directly eval()'ed with no further parsing overhead.
Related Links
-------------
Package home: http://pear.php.net/package/Services_JSON
Changelog: http://pear.php.net/package/Services_JSON/download/1.0.3
Download: http://download.pear.php.net/package/Services_JSON-1.0.3.tgz
Authors
-------
Alan Knowles <alan@akbkhome.com> (lead)
Michal Migurski <mike-pear@teczno.com> (lead)