开发者

String Manipulation in C#: deserialize JSON

开发者 https://www.devze.com 2023-02-20 08:29 出处:网络
Can I use a string function in C# to manipulate this string; \"[{\\\"param开发者_Go百科\\\":\\\"Update Payment\\\",\\\"value\\\":\\\"50.00\\\"}]\"

Can I use a string function in C# to manipulate this string;

"[{\"param开发者_Go百科\":\"Update Payment\",\"value\":\"50.00\"}]"

I want to get at all times the string in position "Update Payment" as well as the value in "50.00"


Since this appear to be JSON why don't you use a JSON deserializer ? http://james.newtonking.com/pages/json-net.aspx for example.

0

精彩评论

暂无评论...
验证码 换一张
取 消