Ok, I'm having some difficult with this.
My JSON is like
{ "names" : [ {"name":"bla"} , {"name":"bla2"} ] }
I was trying to do this tutorial but, due to the different JSON, it didn't worked.
What do I have to put inside this method? I don't know if it's better to create a "wrap" class that contain my list or using directly a JsonObject. Could you provide me a snippet? I'm kinda new in C#.
void webClient_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
DataContractJsonSerializer ser = null;
try
{
???
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Thanks in advance!