php53 json error fix
Merge pull request #1943 from rossriley/php53-fixes

php53 json error fix