Possible Duplicate:
How can I decode json in PHP 5.1?
I am using json_encode function it works fine in my localhost…when i moved to server it not working …I googled and find out that its does not support 5.1 version …I want to use this function .any other possibility?wheather i need to upgrade to 5.2 or wat?
Yes
json_encodeis available in PHP 5 >= 5.2.0, you must either upgrade (recomended) or find a library that implements the functionality.