将Json数据的Conver数组转换为List <string> C#

时间:2016-06-20 14:40:36

标签: c# json

.NET 4.6.1 C#

我有一个JSON对象,其中包含值列表:

enter image description here

我想将其转换为List。我试过这个:

 //responseString contains the JSON
 string responseString = await response.Content.ReadAsStringAsync();
 var profile = JsonConvert.DeserializeObject<ObjectProfile>(responseString);

这是ObjectProfile:

 internal class ObjectProfile
{
    public List<string> Value { get; set; }
}

但代码抛出异常说:

Message = "Unexpected character encountered while parsing value: {. Path 'value', line 1, position 136."

如何达到理想的效果?感谢

0 个答案:

没有答案