Ubuntu 13.10 Issue: Call to undefined function json_decode()

So I ran into another upgrade issue with my Ubuntu 13.10 servers yesterday.  All my JSON calls in PHP stopped working and were throwing the following error:

Call to undefined function json_decode()

After some debugging it appears the version of PHP included in this distribution is not shipped with the JSON functions.  Very strange for something I would guess is used very often.  You can correct this by installing the PHP5-JSON package as indicated below and correct the issue:

sudo apt-get install php5-json

Comments

comments powered by Disqus