"items_game"
{
"game_info"
{
"first_valid_class" "1"
"last_valid_class" "1000"
"first_valid_item_slot" "0"
"last_valid_item_slot" "10"
"num_item_presets" "4"
}
"web_resources"
{
"0"
{
"name" "TI 2013 Results"
"url" "TI_2013_results.txt"
"on_demand" "0"
}
"1"
{
"name" "TI 2013 Schedule"
"url" "TI_2013_schedule.txt"
"on_demand" "0"
}
"2"
{
"name" "TI 2013 Upcoming"
"url" "TI_2013_upcoming.txt"
"on_demand" "0"
}
"3"
{
"name" "TI 2013 NextMatch"
"url" "TI_2013_nextmatch.txt"
"on_demand" "0"
}
}
}上面是一个txt文件的一部分,本身文件很大。看似json,但是没有“,”、“:”和“[]”。怎么从这种文件取值?