Main > Programming > Libraries >

php-json 1.2.1

php-json 1.2.1

Sponsored Links

php-json 1.2.1 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.15 MB
Platform: Any Platform
License: LGPL (GNU Lesser General Public License)
Price:
Downloads: 1338
Date added: 2006-04-16
Publisher: Omar Kilani

php-json 1.2.1 description

php-json is an extremely fast PHP C extension for JSON (JavaScript Object Notation) serialisation. php-json project library uses a forked version of json-c.
It can be used in conjunction with XMLHTTPRequest to exchange JavaScript-encoded data with a browser.
Usage:
A simple ./configure; make; make install should do the trick. Make sure to add an extension=json.so line to your php.ini/php.d. Note: you need to compile php-json with gcc 3.x and up.
Then, just use json_encode to encode your PHP values into JSON, and json_decode to decode JSON into a PHP value.
For example:
$output = json_encode($val);
echo $output."n";
Would produce:
{ "abc": 12, "foo": "bar", "bool0": false, "bool1": true, "arr": [ 1, 2, 3, null, 5 ], "float": 1.2345 }
While:
$input = { "abc": 12, "foo": "bar", "bool0": false, "bool1": true, "arr": [ 1, 2, 3, null, 5 ], "float": 1.2345 };
$val = json_decode($input);
echo $val->abc."n";
Would produce:
12
As of version 1.0.5, json_decode takes an optional parameter, assoc (boolean), that returns an associative array instead of an object.
A PHP object correlates to a JavaScript object (associative array, i.e., key => value pairs), so the above would be referenced in JavaScript like so:
var obj = ...; /* retrieve JSON and eval() it, returning an object */
var result = obj["abc"] * obj["float"];
alert("result is " + result);
This should display an alert box with the value of result, i.e., 14.814.
Enhancements:
- A complete rewrite using JSON_checker as the base for the parser.
- Implements the JSON specification.
- Significant performance improvements on encoding.
- Re-licensed under the PHP license.

php-json 1.2.1 Screenshot

Advertisements

php-json 1.2.1 Keywords

Bookmark php-json 1.2.1

Hyperlink code:
Link for forum:

php-json 1.2.1 Copyright

WareSeeker periodically updates pricing and software information of php-json 1.2.1 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of php-json 1.2.1 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
php-js is an experimental PHP extension which embeds the Mozilla SpiderMonkey JavaScript engine into PHP. Free Download
PHP BookIn provides an online bookmark manager. Free Download
JSON::XS implements JSON (http://www.json.org) for Perl. Free Download
PHP-Qt is an extension for PHP 5.1 that makes it possible to write software with the Qt toolkit. Free Download
ChaNT is a flexible, powerful, cross-browser and easy to use open source web-based chat system written in PHP and JavaScript. Free Download
JSON (JavaScript Object Notation) is a lightweight data-interchange format. Free Download
PHPEclipse is a PHP support for the Eclipse IDE Framework. Free Download
phpPeanuts is a framework for developing business applications in php4 and 5. Free Download