php53 json error fix

As reported by FreelancePHP in IRC