PHP Fatal error: Ca ll to undefined function json_encode() ..? [duplicate]

Possible Duplicate:
Enable json_decode() on my system

Im trying to use json with php and i keep getting the error "PHP Fatal error: Ca
ll to undefined function json_encode()"
. I am using php version 5.3.6 and on phpinfo(); nothing mentions json. Any suggestions? (using freeBSD)

Answer

Install pear-Services_JSON with:

pkg_add -r pear-Services_JSON

Attribution
Source : Link , Question Author : Jonah Katz , Answer Author : quanta

Leave a Comment