Click here to Skip to main content
15,898,222 members
Home / Discussions / Article Writing
   

Article Writing

 
AnswerRe: This is an unfinished article - delete? Pin
phil.o24-Feb-20 18:54
professionalphil.o24-Feb-20 18:54 
GeneralRe: This is an unfinished article - delete? Pin
Dr. Song Li25-Feb-20 2:35
Dr. Song Li25-Feb-20 2:35 
GeneralRe: This is an unfinished article - delete? Pin
phil.o25-Feb-20 4:16
professionalphil.o25-Feb-20 4:16 
GeneralRe: This is an unfinished article - delete? Pin
Dr. Song Li25-Feb-20 4:35
Dr. Song Li25-Feb-20 4:35 
GeneralRe: This is an unfinished article - delete? Pin
phil.o25-Feb-20 4:56
professionalphil.o25-Feb-20 4:56 
GeneralRe: This is an unfinished article - delete? Pin
Dr. Song Li25-Feb-20 5:16
Dr. Song Li25-Feb-20 5:16 
GeneralRe: This is an unfinished article - delete? Pin
phil.o25-Feb-20 5:24
professionalphil.o25-Feb-20 5:24 
GeneralRe: This is an unfinished article - delete? Pin
Dr. Song Li25-Feb-20 5:44
Dr. Song Li25-Feb-20 5:44 
GeneralRe: This is an unfinished article - delete? Pin
Dr. Song Li25-Feb-20 10:31
Dr. Song Li25-Feb-20 10:31 
AnswerRe: This is an unfinished article - delete? Pin
Nelek24-Feb-20 22:31
protectorNelek24-Feb-20 22:31 
GeneralRe: This is an unfinished article - delete? Pin
Dr. Song Li25-Feb-20 10:32
Dr. Song Li25-Feb-20 10:32 
QuestionRE: An All VB.NET Explorer Tree Control with ImageList Management Pin
Graham Bashford23-Feb-20 15:59
Graham Bashford23-Feb-20 15:59 
QuestionRe: RE: An All VB.NET Explorer Tree Control with ImageList Management Pin
Richard MacCutchan23-Feb-20 21:00
mveRichard MacCutchan23-Feb-20 21:00 
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 

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.