如何将数组转换为数组(字符串格式数组到数组)

how can I convert array to array (string format array to array)

提问人:Web Project 提问时间:12/14/2021 最后编辑:KinglishWeb Project 更新时间:12/15/2021 访问量:15

问:

"SaveFile"
{
    "timestamp"     
    "2021-12-13 04:06:04"
    "team2"
    "de_dust2"
    {
        "team1"     "15"
        "team2"     "0"
    }
    "SecondHalfScore"
    {
        "team1"     "0"
        "team2"     "15"
    }
    "OvertimeScore"
    {
        "OvertimeID"        "2"
    }
    "History"
    {
        "NumConsecutiveTerroristLoses"      "4"
    }
    "PlayersAliveT"
    {
        "round1"        "1"
        "round30"       "63"
    }
    "PlayersAliveCT"
    {
        "round30"       "63"
    }
    "Timeouts"
    {
        "team2"     "4"
        "team1"     "4"
        "technical"
        {
            "team2"     "0"
            "team1"     "0"
        }
    }
    "PlayersOnTeam2"
    {
        "107020412"
        {
            "name"      "ImAGiraffe"
            {
                "item"      "weapon_knife"
                "item"      "weapon_usp_silencer"
            }
            "MatchStats"
            {
                "EquipmentValue"
                {
                    "round1"        "200"
                    "round30"       "200"
                }
                "MoneySaved"
                {
                    "round1"        "10000"
                }
            }
            "ItemCooldown"
            {
                "heavyassaultsuit"      "-42"
            }
        }
    }
}

看截图

排序 arraylist 多维数组 切片

评论

0赞 Kinglish 12/15/2021
您没有指定语言...?这看起来像 JSON(格式化),删除了冒号和逗号。为什么它采用这种精简格式?
0赞 Amit Kumar PRO 12/22/2021
请编辑问题,将其限制为具有足够详细信息的特定问题,以确定适当的答案。

答: 暂无答案