Click here to Skip to main content
15,565,474 members
Home / Discussions / Article Writing
   

Article Writing

 
AnswerRe: RE: An All VB.NET Explorer Tree Control with ImageList Management Pin
Graham Bashford24-Feb-20 19:19
Graham Bashford24-Feb-20 19:19 
GeneralRe: RE: An All VB.NET Explorer Tree Control with ImageList Management Pin
Richard MacCutchan25-Feb-20 0:06
mveRichard MacCutchan25-Feb-20 0:06 
GeneralRe: RE: An All VB.NET Explorer Tree Control with ImageList Management Pin
Graham Bashford25-Feb-20 10:27
Graham Bashford25-Feb-20 10:27 
QuestionAnd another blogger Pin
Nelek21-Feb-20 6:40
protectorNelek21-Feb-20 6:40 
AnswerRe: And another blogger - C'mon... seriously? Pin
Nelek23-Feb-20 23:04
protectorNelek23-Feb-20 23:04 
QuestionView deleted article Pin
samyv19-Feb-20 6:31
professionalsamyv19-Feb-20 6:31 
AnswerRe: View deleted article Pin
Sean Ewington19-Feb-20 6:38
editorSean Ewington19-Feb-20 6:38 
GeneralDecode Data Pin
Member 1266595317-Feb-20 23:54
Member 1266595317-Feb-20 23:54 
{"nodes":[{"node":{"field_image":{"src":"http:\/\/chdpr.gov.in\/dashboard\/sites\/default\/files\/IMG_6008a.jpg","alt":""}}},{"node":{"field_image":{"src":"http:\/\/chdpr.gov.in\/dashboard\/sites\/default\/files\/IMG_6026a.jpg","alt":""}}},{"node":{"field_image":{"src":"http:\/\/chdpr.gov.in\/dashboard\/sites\/default\/files\/IMG_5524_0.JPG","alt":""}}},{"node":{"field_image":{"src":"http:\/\/chdpr.gov.in\/dashboard\/sites\/default\/files\/IMG_5876.JPG","alt":""}}},{"node":{"field_image":{"src":"http:\/\/chdpr.gov.in\/dashboard\/sites\/default\/files\/IMG_5803.JPG","alt":""}}}]}


Json data
How to Deserialize json data.

and my code is:

private void getImagePath()
{
    HttpWebRequest WebReq = (HttpWebRequest)WebRequest.Create(string.Format("#"));

    WebReq.Method = "GET";

    HttpWebResponse WebResp = (HttpWebResponse)WebReq.GetResponse();

    Console.WriteLine(WebResp.StatusCode);
    Console.WriteLine(WebResp.Server);

    string jsonString;
    using (Stream stream = WebResp.GetResponseStream())   //modified from your code since the using statement disposes the stream automatically when done
    {
        StreamReader reader = new StreamReader(stream, System.Text.Encoding.UTF8);
        jsonString = reader.ReadToEnd();
    }

    JObject jsonResponse = JObject.Parse(jsonString);
    JObject objResponse = (JObject)jsonResponse["nodes\node\field_image"];

    string sdfjg = objResponse.ToString();


    Dictionary<string, JArray> _Data = Newtonsoft.Json.JsonConvert.DeserializeObject<Dictionary<string, JArray>>(objResponse.ToString());

}

GeneralRe: Decode Data Pin
Richard MacCutchan18-Feb-20 0:34
mveRichard MacCutchan18-Feb-20 0:34 
QuestionBlogger needing help Pin
Nelek17-Feb-20 10:39
protectorNelek17-Feb-20 10:39 
AnswerRe: Blogger needing help Pin
Sean Ewington18-Feb-20 8:33
editorSean Ewington18-Feb-20 8:33 
GeneralRe: Blogger needing help Pin
Nelek18-Feb-20 9:48
protectorNelek18-Feb-20 9:48 
GeneralRe: Blogger needing help Pin
Sean Ewington18-Feb-20 10:23
editorSean Ewington18-Feb-20 10:23 
GeneralRe: Blogger needing help Pin
Richard MacCutchan18-Feb-20 11:32
mveRichard MacCutchan18-Feb-20 11:32 
GeneralRe: Blogger needing help Pin
Nelek18-Feb-20 11:36
protectorNelek18-Feb-20 11:36 
GeneralRe: Blogger needing help Pin
Sean Ewington18-Feb-20 11:39
editorSean Ewington18-Feb-20 11:39 
GeneralRe: Blogger needing help Pin
Nelek19-Feb-20 3:33
protectorNelek19-Feb-20 3:33 
QuestionUnable to edit article online. Pin
JS0000115-Feb-20 8:24
JS0000115-Feb-20 8:24 
AnswerRe: Unable to edit article online. Pin
Sean Ewington18-Feb-20 5:13
editorSean Ewington18-Feb-20 5:13 
GeneralRe: Unable to edit article online. Pin
JS0000118-Feb-20 12:40
JS0000118-Feb-20 12:40 
Questiondon't see the saved article draft Pin
Vassili Kravtchenko-Berejnoi11-Feb-20 0:12
professionalVassili Kravtchenko-Berejnoi11-Feb-20 0:12 
AnswerRe: don't see the saved article draft Pin
phil.o11-Feb-20 0:37
mvephil.o11-Feb-20 0:37 
GeneralRe: don't see the saved article draft Pin
Vassili Kravtchenko-Berejnoi11-Feb-20 2:45
professionalVassili Kravtchenko-Berejnoi11-Feb-20 2:45 
GeneralRe: don't see the saved article draft Pin
phil.o11-Feb-20 2:53
mvephil.o11-Feb-20 2:53 
GeneralRe: don't see the saved article draft Pin
Vassili Kravtchenko-Berejnoi11-Feb-20 2:57
professionalVassili Kravtchenko-Berejnoi11-Feb-20 2:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.