Exemple #1
0
    public static VersionManifest Read(string path)
    {
        if (!File.Exists(path))
        {
            return(new VersionManifest());
        }

        string     jsonStr     = File.ReadAllText(path);
        JSONObject resultPrase = JSON.Parse(jsonStr).AsObject;

        VersionManifest result = new VersionManifest();

        foreach (var kvp in resultPrase)
        {
            result.Add(kvp.Key, (kvp.Value as JSONString).Value);
        }

        return(result);
    }