Q:

What fault in my json file? 

I have a json file, called: openingstijden.json 
{
    "openingstijden": {
        "normaal": {
            ["10.00", "18.00"],
            ["8.00", "16.00"],
            ["8.00", "18.00"],
            ["8.00", "18.00"],
            ["8.00", "18.00"],
            ["8.00", "18.00"],
            ["8.00", "18.00"]
        },
        "speciaal": {
            "2013-11-20": ["12.00", "20.00"]
        }
    }
}

But when I try to make a vardump on this array
// path naar config file
define('CONFIG_FILE', __DIR__.'/openingstijden.json');

$businessHours = json_decode(file_get_contents(CONFIG_FILE), true);

var_dump($businessHours); 

I get this result: NULL
and also when i try to foreach the array:
Warning: Invalid argument supplied for foreach()
Do you guys know what is wrong with my json file? 
Thanks in advance! 

A:

Your JSON string is invalid.  Every entry in valid JSON must have a key for the value.  The seven lines starting with ["10.00", "18.00"], do not have a key as "2013-11-20": ["12.00", "20.00"] does. 
To make it valid...
{
    "openingstijden": {
        "normaal": {
            "0": ["10.00", "18.00"],
            "1": ["8.00", "16.00"],
            "2": ["8.00", "18.00"],
            "3": ["8.00", "18.00"],
            "4": ["8.00", "18.00"],
            "5": ["8.00", "18.00"],
            "6": ["8.00", "18.00"]
        },
        "speciaal": {
            "2013-11-20": ["12.00", "20.00"]
        }
    }
}

