json_decode and filenames
Posted: Fri Jan 29, 2010 4:17 pm
Hello, I'm having trouble with the json_decode function. Here is some sample code:
$ret is always NULL - even though the string I am passing it is valid JSON. Any ideas?
Code: Select all
$test = '{"ZTDA5":[["Policy","C:\\files\\1\\Health.pdf"]]}';
$ret = json_decode($test);
var_dump($ret);