1

How would I create C# class to deserialize this?

{"result":{"appid":295110,"contextid":1,"items":{"Skin: Graffiti Hunting Rifle":11990}}}

With all the online converters the ":" after Skin messes it up.

DylanBro
  • 15
  • 4

2 Answers2

0

You can try using Json.NET

string result = "{'result':{'appid':295110,'contextid':1,'items':{'Skin: Graffiti Hunting Rifle':11990}}}";
var jsonData = JObject.Parse(result);
MessageBox.Show(jsonData["result"]["appid"].ToString());
Tod
  • 160
  • 12
0

Please use following thread: http://json2csharp.com/ thank you