Support for PHP<5.4
Support for PHP<5.4

As well in legacy JSON
Merge pull request #53 from pietercolpaert/patch-1

My previous pull request broke support for PHP <5.4 - Fixed