title: PHP variable to JSON on PHP 5.1.6
body: <p>I've just bought a hosting on a server which runs with PHP 5.1.6. Earlier, I've prepared a website which uses a lots of <code>json_encode</code> and <code>json_decode</code> calls.</p>
  
  <p>As I've find it out now, those PHP functions are available in PHP 5 >= 5.2.0</p>
  
  <p>It's a simple hosting, so I'm unable to add PECL extensions and so on. I'm wondering if there is such a solution written in PHP, which will allow me to convert PHP variable into JSON strings and backwards. Do You know any?</p>