0
如何用動態節點使用c#讀取Json字符串?我無法讀取密鑰中的密鑰和子節點。如何用動態節點使用c#讀取Json字符串?
{
"2030417": [{
"country": "Malaysia",
"push": 20543,
"click": 752,
"ctr": 3.66,
"cpc": 0.03,
"conversion": 0,
"conversionrate": 0,
"cpa": 0,
"SOV%": "3.87"
}],
"2032769": [{
"country": "India",
"push": 10460,
"click": 0,
"ctr": 0,
"cpc": 0.001,
"conversion": 7,
"conversionrate": 0.07,
"cpa": 2.22,
"SOV%": "0.28"
}]
}
顯示您C#代碼。它應該很容易閱讀。 –
提示解決方案位於這裏:http://stackoverflow.com/questions/20727787/deserialize-json-string-to-dictionarystring-object – Edgaras
看看這裏:https://thewayofcode.wordpress.com/2012/ 9月18日/ C-動態對象和JSON序列化與 - JSON-淨/ –