Need help to deserialize JSON string in C#

问题内容:

I have a JSON string as below.

{"checkbox-1026":"eba8786c-f31d-4c5a-92ce-2d8ffd7c1066","checkbox-1027":"1b529116-1c58-4ac5-ad9d-04bd0d296335"}

I need to get values "eba8786c-f31d-4c5a-92ce-2d8ffd7c1066" and "1b529116-1c58-4ac5-ad9d-04bd0d296335".

Can anyone help me to get the values?

问题评论:

2  
Newtonsoft.Json should be your solution.
2  
What did you try?
    
there are plenty of examples at Json.net
    
Will the json string always have the same keys?
    
use JSON.NET and JsonConvert.DeserializeObject<>

原文地址:

https://stackoverflow.com/questions/47752539/need-help-to-deserialize-json-string-in-c-sharp

添加评论

友情链接:蝴蝶教程