相关问题
- Jackson Deserialization not calling deserialize on
- Sorting 3 numbers without branching [closed]
- How to maintain order of key-value in DataFrame sa
- Graphics.DrawImage() - Throws out of memory except
- StackExchange API - Deserialize Date in JSON Respo
string str = "["1","2","3"]";
List<int> list = JsonConvert.DeserializeObject<List<int>>(str);
using Newtonsoft.Json;
JsonConvert.DeserializeObject<int[]>("["1","2","3"]");或者
JsonConvert.DeserializeObject<List<int>>("["1","2","3"]");