Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

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

1 Answer 1

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.