JSON没有在php中编译

xjx*_*424 4 php ubuntu json

我在Ubuntu 12.04上安装了PHP版本5.5.1-2,JSON没有捆绑它(据我所知).

我已经读过,我将不得不使用--enable-json或--with-json选项重新安装php.
所以我的问题是:

如何验证未安装JSON?

如果没有,我是否重新安装这样的php:apt-get install php --with-json(我包括--enable-json)?

如果我重新安装php,我的当前设置会丢失吗?

谢谢

Jam*_*ore 17

如果您还没有安装它:

sudo apt-get install php5-json

(更多信息:http://iteration99.com/2013/php-json-removed-from-php-5-5/)

不应该覆盖任何其他设置.