Пример #1
0
    static public T ReadJson <T>(string sPath, bool bWWW = false)
    {
        string str = string.Empty;

        if (bWWW)
        {
            str = ReadFileWWW(CrossPlatform.GetWWWDir(sPath));
        }
        else
        {
            str = ReadFile(sPath);
        }
        return(JsonMapper.ToObject <T>(str));
    }