SyntaxFix
Write A Post
Hire A Developer
Questions
Try using second parameter for json_decode function:
$json = json_decode(file_get_contents($file), true);