我如何用C#读取此文件?

时间:2019-10-29 01:04:47

标签: c#

我试图弄清楚如何用C#读取此文件。我想将其读取为数组或列表。

{
    "configVersion": 1,
    "name": "Retha",
    "info": "Song by Teminite\nMapped by Rubiksmaster02\nLives - 30\nSpeed - 24\nLength - 3:50\nCheckpoints - 5\nDifficulty - very hard\n",
    "levelResources": [],
    "tags": ["Electronic", "OneHand"],
    "handCount": 1,
    "moreInfoURL": "",
    "speed": 24.0,
    "lives": 30,
    "maxLives": 30,
    "musicFile": "music.ogg",
    "musicTime": 230.321,
    "iconFile": "icon.jpg",
    "environmentType": 1,
    "unlockConditions": [],
    "hidden": false,
    "checkpoints": [51.0716553, 80.11281, 120.133987, 160.713272, 189.913284],
    "events": [{
            "time": 0.01,
            "data": ["SetBGColor", "0.1990868,0,0,1"]
        }, {
            "time": 0.1,
            "data": ["SetPlayerDistance", "14"]
        }, {
            "time": 2.58571815,
            "data": ["SpawnObj", "[Up]"]
        }, ]
}

即“ data.txt”的内容

0 个答案:

没有答案