public static function loadJSON($filename)
    {
        $content = self::load($filename);
        $data = json_decode($content, true);
        if ($data === null) {
            throw new InvalidJSON();
        }
        return $data;
    }