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

  • SEARCH
  • Home
  • 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 8489791
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:55:35+00:00 2026-06-10T21:55:35+00:00

This JSON response from the Twitter Stream API looks like so: entities: { media:

  • 0

This JSON response from the Twitter Stream API looks like so:

"entities": {
  "media": [
    {
      "id": 76360760611180544,
      "id_str": "76360760611180544",
      "media_url": "http://p.twimg.com/AQ9JtQsCEAA7dEN.jpg",
      "media_url_https": "https://p.twimg.com/AQ9JtQsCEAA7dEN.jpg",
      "url": "http://t.co/qbJx26r",
      "display_url": "pic.twitter.com/qbJx26r",
      "expanded_url": "http://twitter.com/twitter/status/76360760606986241/photo/1",
      "sizes": {
        "large": {
          "w": 700,

My class looks something like this:

[DataContract]
public class Tweet {
    [DataMember]
    public entities entities;
}

[DataContract]
public class entities {
    [DataMember]
    public media media;
}
[DataContract]
public class media {
    [DataMember]
    public string id;
    [DataMember]
    public string id_str;
    [DataMember]
    public string media_url;
    [DataMember]
    public string media_url_https;
    [DataMember]
    public string url;
    [DataMember]
    public string display_url;
    [DataMember]
    public string expanded_url;
    [DataMember]
    public string type;
}

The problem I run into is that the media class is always null. Entities is not null when there is a picture attached to a tweet, but my media class remains null so I’m assuming I’ve written this incorrectly.

Any help would be appreciated. Thanks.

  • 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-06-10T21:55:36+00:00Added an answer on June 10, 2026 at 9:55 pm

    In json square brackets holds arrays, therefore media should be a list.

    http://www.secretgeek.net/json_3mins.asp

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

Sidebar

Related Questions

Struggling to parse this JSON response from http://api.twitter.com/1/trends/current.json using foreach ($json_output->trends[0] as $trend )
For parsing JSON like this twitter API users/show response I've been using Jackson and
I am getting json response from this google api service to get reverse geo
This works great: require 'net/http' uri = URI('http://api.twitter.com/1/statuses/user_timeline.json') args = {include_entities: 0, include_rts: 0,
The nodejs server 'gets' this JSON stream from Twitter and sends it to the
I am trying to parse the JSON response from Wordnik's API. This is built
I've got this response from JSOn web service: categoria = ( { id_categoria =
I'm using the Google Maps API. Please see this JSON response . The HTML
I am getting json response like this {item_id:1,item_title:Item 1}{item_id:2,item_title:Item 2} how would I parse
i am getting the JSON response like this : [ {IndexID:1,IndexName:Consumer Confidence Index(CCI),IndexValue:34.79,Month:10,PercentageChanged:0,Position:0,Year:2011}, {IndexID:1,IndexName:Consumer

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.