Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rryqszq4/php-cjson
Fast JSON parsing and encoding support for PHP extension
https://github.com/rryqszq4/php-cjson
Last synced: about 2 months ago
JSON representation
Fast JSON parsing and encoding support for PHP extension
- Host: GitHub
- URL: https://github.com/rryqszq4/php-cjson
- Owner: rryqszq4
- Created: 2015-12-23T08:56:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-11T16:07:33.000Z (almost 6 years ago)
- Last Synced: 2024-04-17T22:46:16.313Z (9 months ago)
- Language: C
- Homepage:
- Size: 29.3 KB
- Stars: 11
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
php-cjson
===========
[![Build Status](https://travis-ci.org/rryqszq4/php-cjson.svg?branch=master)](https://travis-ci.org/rryqszq4/php-cjson)The php-cjson is a fast JSON parsing and encoding support for PHP extension.
Install
-------
```
$/path/to/phpize
$./configure --with-php-config=/path/to/php-config
$make && make install
```Example
-------
**encode**
```php
"value")
);
var_dump(cjson_encode($arr));/* ==>output
string(28) "[1,"string",{"key":"value"}]";
*/
?>
```**decode**
```php
output
array(3) {
[0]=>
int(1)
[1]=>
string(6) "string"
[2]=>
array(1) {
["key"]=>
string(5) "value"
}
}
*/
?>
```