Hi, I have an action which returns json value which is following :
{
"Formatted Name": "Samsung",
"Style": "stuffitblue",
"Supports": [
{
"Name": "Follow",
"URL": "IOGLO000030000900001000050000M000160000100005.Link?aLink_GUID=29b1468f-c8c3-db23-3097-c85369f818cd&aOutputFormat=JSON"
}
],
"Type": "Button"
},
I am getting the value of formatted name and style which I am showing in label but I am getting a problem to show the value of supports.So I need a code through which I can print the value of name and URL in label.
I have write the following code to print formatted name.
void wc_DownloadStringCompleted1(object sender, DownloadStringCompletedEventArgs e)
{
try
{
var serializer1 = new JavaScriptSerializer();
serializer1.RegisterConverters(new[] { new DynamicJsonConverter() });
dynamic obj = serializer1.Deserialize(e.Result, typeof(object));
dynamic obj7 = obj[7];
dynamic fn7 = obj7["Formatted Name"];
lblitemname.Text = fn7;
}
catch (Exception ex)
{
}
}
Thanks,