Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6322217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:17:23+00:00 2026-05-24T16:17:23+00:00

I am trying to parse JSON response from a httpwebrequest fetch and a little

  • 0

I am trying to parse JSON response from a httpwebrequest fetch and a little unsure after reading posts on it, as to what would be the best approach for me.
I access the facebook graph api and would like to parse the all fields for a given post.

"data": [
  {
     "id": "17xxxxxxxxxxxxx_xxxxxxxxxxxxxxxxxxx",
     "from": {
        "name": "Lxxxxxx",
        "category": "Sports league",
        "id": "17xxxxxxxxxxxxx"
     },
     "picture": "http://external.ak.fbcdn.net/safe_image.php?d=AQB4GscSy-2RHY_0&w=130&h=130&url=http\u00253A\u00252F\u00252Fwww.ligabbva.com\u00252Fquiz\u00252Farchivos\u00252Fbenzema-quiz-facebook.png",
     "link": "http://www.xxxxxva.com/quiz/index.php?qid=34",
     "source": "http://www.lxxxxva.com/modulos/redirectQuiz.php?name=benzema&q=34&time=1312827103",
     "name": "DEMUESTRA CU\u00c1NTO SABES SOBRE... BENZEMA",
     "caption": "www.xxxxxva.com",
     "description": "Demuestra cu\u00e1nto sabes sobre Karim Benzema, delantero del Real Madrid.",
     "icon": "http://static.ak.fbcdn.net/rsrc.php/v1/yj/r/v2OnaTyTQZE.gif",
     "type": "video",
     "created_time": "2011-08-08T18:11:54+0000",
     "updated_time": "2011-08-08T18:11:54+0000",
     "likes": {
        "data": [
           {
              "name": "Jhona Arancibia",
              "id": "100000851276736"
           },
           {
              "name": "Luis To\u00f1o",
              "id": "100000735350531"
           },
           {
              "name": "Manuel Raul Guerrero Cumbicos",
              "id": "100001485973224"
           },
           {
              "name": "Emmanuel Gutierrez",
              "id": "100000995038988"
           }
        ],
        "count": 127
     },
     "comments": {
        "count": 33
     }
  },
  {
     "id": "17xxxxxxxxxxxxxxxx_xxxxxxxxxxxxx",
     "from": {
        "name"

not all fields will always be present but I need to be able to iterate through each post.

Update:

I am receiving an error for the following line:

dim serializer as new jsonSerializer()
dim jsArray as JArray = directCast(serializer.Deserialize(New JsonTextReader _
     (New StringReader(responseData))), JArray)

ERROR: unable to cast object of type newtonsoft.json.linq.jobject to type newtonsoft.json.ling.jobject

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T16:17:26+00:00Added an answer on May 24, 2026 at 4:17 pm

    you could use the newtonsoft JSON deserialiser

    you would set up a Data Entity with each of the properties and their sub properties and then use JSON attributes to map the entities to the properties

    sample code from a similar thing I was doing:

    [JsonObject(MemberSerialization.OptIn)]
        public class Data
        {
            public override string ToString()
            {
                return Name;
            }
    
            [JsonProperty(PropertyName = "id")]
            public string Id{ get; set; }
    
    
        }
    
    public Data DeserialiseData()
            {
                var data = JsonConvert.DeserializeObject<Data>("JSON string");
    
        return data;
    }
    

    more information can be found here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to parse the json grabbed from here . Basically what I do
I'm trying to parse some JSON coming from an AJAX request using jQuery. Basically,
I'm trying to parse a JSON response with jQuery but it's not working. This
I am trying to parse JSON in an Adobe Flex app, using http://www.mikechambers.com/blog/2006/03/28/tutorial-using-json-with-flex-2-and-actionscript-3/'>This Tutorial
I'm trying to parse some JSON using the JSon.Net library. The documentation seems a
I'm trying to parse an array of JSON objects into an array of strings
I'm trying to parse a html page and extract 2 values from a table
I have validated the JSON response from my C# Webmethod, so I don't believe
I have been trying to access certain part of the json response, however I
I am trying to parse a Json file like this, generated by Exiftool: [{

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.