json_decode function is not part of PHP 5.1, so I cannot use it. Is there any other function for this version?
The Zend framework has Zend_Json. At least it used to a couple of years ago.
http://framework.zend.com/download
You can just pull out the JSON library and use it in a standalone manner.