This is a rename of the previously published php-pecl-json package.

The current extension license is not free as it includes an usage restriction (The Software shall be used for Good, not Evil).

So, this alternative is free, as I prefere to quote  Albert Einstein :

The world will not be destroyed by those who do evil, but by those who watch them without doing anything.

Sources are available on github : pecl-json-c

Installation with PHP 5.4:

yum --enablerepo=remi install php-pecl-jsonc

You must disable the default json.so extension (in /etc/php.d/json.ini) before you can enable the new jsonc.so (in /etc/php.d/jsonc.ini).

With PHP 5.5, installation is automatic, as the non-free json extension have been removed, This is same in some Linux distributions:

json_encode function is the same than in php 5.5.

json_decode function use the json-c library.

New feature: the JsonIncrementalParser class allow to parse data incrementally without need to load all in memory.

I plan to submit a PHP RFC to switch to this new free implementation in PHP next.

Your feedback is expected.