Fix PHP 5.3 JSON constant failure