Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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)

share|improve this question

marked as duplicate by Chopper3 Sep 6 '11 at 17:21

This question was marked as an exact duplicate of an existing question.

    
check ini to see if the extension json.so is commented – galchen Sep 6 '11 at 17:25

Install pear-Services_JSON with:

pkg_add -r pear-Services_JSON
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.