'example.com', 'subdomain' => 'www.example.com', 'email' => 'name@example.com', ]; if (file_exists($jsonFile)) { $raw = file_get_contents($jsonFile); $data = json_decode($raw, true); if (!is_array($data)) $data = $defaults; } else { $data = $defaults; } ?>