I'm trying to read a json file and parse it to an array, and then acces that array.
This is my JSON file:
{
"stijn",
"bert",
"tom"
}
This is how I try to acces it and convert it to an array:
$string = file_get_contents(__DIR__."/first.json");
$array = json_decode($string, true);
if I do a var_dump of $array I get "null", if I do it of $string I get the contents of the JSON file.
I think that my JSON file is not properly formatted, but if I search for some examples they are not suitable for my list of names.