你好,Stack Overflow,
这是我的第一个帖子,我有一个问题,需要解析这段文本并将其转换为数组(它来自数据库)。
"TableToKeyValues"
{
"inventory"
{
"slot2"
{
"amount" "10"
"item" "wood_plank"
}
"slot1"
{
"amount" "10"
"item" "metal"
}
"slot3"
{
"amount" "10"
"item" "plastic"
}
}
}
感谢rtm516的帮助。