# php-cjson **Repository Path**: rryqszq4/php-cjson ## Basic Information - **Project Name**: php-cjson - **Description**: The php-cjson is a fast JSON parsing and encoding support for PHP extension. - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: https://github.com/rryqszq4/php-cjson - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2015-12-28 - **Last Updated**: 2020-12-18 ## Categories & Tags **Categories**: json-tools **Tags**: None ## 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" } } */ ?> ```