PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Web Services » Services_JSON

PHP implementaion of json_encode/decode

This package is unmaintained.

Download latest release 1.0.3 (archived versions might be outdated)

License: BSD

Description

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.

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#16251ClosedBug0.9.02009-05-22single quotes instead of double quotes -> wrong JSON format
#16585ClosedReq1.0.02009-09-09Wrong HTTP content-type headers returned
#16908ClosedBugtrunk2009-12-15_encode() doesn't work for floats when locale is pt_BR
#17138BogusReq1.0.22010-02-19Unexpected behavior
#17515ClosedBug1.0.22010-06-23Unsafe use of strlen
#17921ClosedBug1.0.22010-10-01Json decode chokes on long string...
#17922BogusBug1.0.22010-10-01Json decode chokes on long string...
#18018FeedbackReq1.0.22010-11-01implement toJSON() method for objects and no header
#18215ClosedBug1.0.32011-01-24Error when using decode for longer strings
#19710FeedbackReq1.0.32012-11-16can decode() support the second parameter like json_decode
#19920ClosedBugSVN2013-04-29PHP function class_name() does not exist - should be get_class()
#21169ClosedBug1.0.32017-01-21Deprecated Warning