title: PHP 4.4.1 JSON ENCODE
body: <p>I have a jQuery login form that uses $post function to send credentials to the php script that checks the credentials againts the users in the database.</p>
  
  <p>I have been using PHP 5.2 and have been using echo json_encode($data); in my php scripts to send back error messages to the login form witout any issues.  The problem is now I have a client that has PHP 4.4.1 installed and it doesn't recognise this command and throw the following error.</p>
  
  <p>Fatal error: Call to undefined function: json_encode() </p>
  
  <p>Is there an equivalent to json_encode() in version PHP 4.4.1?</p>
  
  <p>Any help would be great.</p>
  
  <p>Thanks in advance.</p>