Changing php5.4+ constants for json_decode