Click here to Skip to main content
15,886,518 members
Home / Discussions / Article Writing
   

Article Writing

 
AnswerRe: RE: An All VB.NET Explorer Tree Control with ImageList Management Pin
Graham Bashford24-Feb-20 18:19
Graham Bashford24-Feb-20 18:19 
GeneralRe: RE: An All VB.NET Explorer Tree Control with ImageList Management Pin
Richard MacCutchan24-Feb-20 23:06
mveRichard MacCutchan24-Feb-20 23:06 
GeneralRe: RE: An All VB.NET Explorer Tree Control with ImageList Management Pin
Graham Bashford25-Feb-20 9:27
Graham Bashford25-Feb-20 9:27 
QuestionAnd another blogger Pin
Nelek21-Feb-20 5:40
protectorNelek21-Feb-20 5:40 
AnswerRe: And another blogger - C'mon... seriously? Pin
Nelek23-Feb-20 22:04
protectorNelek23-Feb-20 22:04 
QuestionView deleted article Pin
samyv19-Feb-20 5:31
professionalsamyv19-Feb-20 5:31 
AnswerRe: View deleted article Pin
Sean Ewington19-Feb-20 5:38
staffSean Ewington19-Feb-20 5:38 
GeneralDecode Data Pin
Member 1266595317-Feb-20 22:54
Member 1266595317-Feb-20 22: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 MacCutchan17-Feb-20 23:34
mveRichard MacCutchan17-Feb-20 23:34 
QuestionBlogger needing help Pin
Nelek17-Feb-20 9:39
protectorNelek17-Feb-20 9:39 
AnswerRe: Blogger needing help Pin
Sean Ewington18-Feb-20 7:33
staffSean Ewington18-Feb-20 7:33 
GeneralRe: Blogger needing help Pin
Nelek18-Feb-20 8:48
protectorNelek18-Feb-20 8:48 
GeneralRe: Blogger needing help Pin
Sean Ewington18-Feb-20 9:23
staffSean Ewington18-Feb-20 9:23 
GeneralRe: Blogger needing help Pin
Richard MacCutchan18-Feb-20 10:32
mveRichard MacCutchan18-Feb-20 10:32 
GeneralRe: Blogger needing help Pin
Nelek18-Feb-20 10:36
protectorNelek18-Feb-20 10:36 
GeneralRe: Blogger needing help Pin
Sean Ewington18-Feb-20 10:39
staffSean Ewington18-Feb-20 10:39 
GeneralRe: Blogger needing help Pin
Nelek19-Feb-20 2:33
protectorNelek19-Feb-20 2:33 
QuestionUnable to edit article online. Pin
JS0000115-Feb-20 7:24
JS0000115-Feb-20 7:24 
AnswerRe: Unable to edit article online. Pin
Sean Ewington18-Feb-20 4:13
staffSean Ewington18-Feb-20 4:13 
GeneralRe: Unable to edit article online. Pin
JS0000118-Feb-20 11:40
JS0000118-Feb-20 11:40 
Questiondon't see the saved article draft Pin
Vassili Kravtchenko-Berejnoi10-Feb-20 23:12
professionalVassili Kravtchenko-Berejnoi10-Feb-20 23:12 
AnswerRe: don't see the saved article draft Pin
phil.o10-Feb-20 23:37
professionalphil.o10-Feb-20 23:37 
GeneralRe: don't see the saved article draft Pin
Vassili Kravtchenko-Berejnoi11-Feb-20 1:45
professionalVassili Kravtchenko-Berejnoi11-Feb-20 1:45 
GeneralRe: don't see the saved article draft Pin
phil.o11-Feb-20 1:53
professionalphil.o11-Feb-20 1:53 
GeneralRe: don't see the saved article draft Pin
Vassili Kravtchenko-Berejnoi11-Feb-20 1:57
professionalVassili Kravtchenko-Berejnoi11-Feb-20 1: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.