add PHP json_decode workaround