Well, it's hard for me to handle this.
My JSON is like
{ "names" : [ {"name":"bla"} , {"name":"bla2"} ] }
I tried to make this tutorial , but due to different JSON, this did not work.
What do I need to do inside this method? I do not know if it is better to create a "wrap" class containing my list, or directly using JsonObject. Could you provide me a fragment? I am a little new to C #.
void webClient_OpenReadCompleted(object sender, OpenReadCompletedEventArgs e)
{
DataContractJsonSerializer ser = null;
try
{
???
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Thanks in advance!
source
share