Note that there are some explanatory texts on larger screens.

plurals
  1. POTwitter search api entities with media not working with Json.net for Windows phone Mango silverlight
    primarykey
    data
    text
    <p>Below is my returned json from twitter</p> <pre><code>{ "created_at": "Sat, 11 Feb 2012 06:38:28 +0000", "entities": { "hashtags": [ { "text": "Shubhdin", "indices": [ 9, 18 ] } ], "urls": [], "user_mentions": [ { "screen_name": "SAMdLaw", "name": "Sabyasachi Mohapatra", "id": 104420398, "id_str": "104420398", "indices": [ 0, 8 ] } ] }, "from_user": "nilayshah80", "from_user_id": 213599118, "from_user_id_str": "213599118", "from_user_name": "Nilay Shah", "geo": { "coordinates": [ 18.6003, 73.825 ], "type": "Point" }, "id": 168222351106899968, "id_str": "168222351106899968", "iso_language_code": "in", "metadata": { "result_type": "recent" }, "profile_image_url": "http://a2.twimg.com/profile_images/1528184590/IMG_0465_normal.JPG", "profile_image_url_https": "https://si0.twimg.com/profile_images/1528184590/IMG_0465_normal.JPG", "source": "&amp;lt;a href=&amp;quot;http://twabbit.wordpress.com/&amp;quot; rel=&amp;quot;nofollow&amp;quot;&amp;gt;twabbit&amp;lt;/a&amp;gt;", "text": "@SAMdLaw #Shubhdin mitra", "to_user": "SAMdLaw", "to_user_id": 104420398, "to_user_id_str": "104420398", "to_user_name": "Sabyasachi Mohapatra", "in_reply_to_status_id": 168219865197461505, "in_reply_to_status_id_str": "168219865197461505" }, { "created_at": "Sun, 12 Feb 2012 01:54:07 +0000", "entities": { "hashtags": [ { "text": "IWIllAlwaysLoveYou", "indices": [ 88, 107 ] } ], "urls": [], "user_mentions": [], "media": [ { "id": 168513175187238912, "id_str": "168513175187238912", "indices": [ 108, 128 ], "media_url": "http://p.twimg.com/Alat1wsCMAAh-wE.jpg", "media_url_https": "https://p.twimg.com/Alat1wsCMAAh-wE.jpg", "url": "http://t.co/dRc4dXH3", "display_url": "pic.twitter.com/dRc4dXH3", "expanded_url": "http://twitter.com/RIPWhitneyH/status/168513175183044608/photo/1", "type": "photo", "sizes": { "orig": { "w": 395, "h": 594, "resize": "fit" }, "large": { "w": 395, "h": 594, "resize": "fit" }, "thumb": { "w": 150, "h": 150, "resize": "crop" }, "small": { "w": 340, "h": 511, "resize": "fit" }, "medium": { "w": 395, "h": 594, "resize": "fit" } } } ] }, "from_user": "RIPWhitneyH", "from_user_id": 19319043, "from_user_id_str": "19319043", "from_user_name": "RIP Whitney Houston", "geo": null, "id": 168513175183044608, "id_str": "168513175183044608", "iso_language_code": "en", "metadata": { "recent_retweets": 8, "result_type": "popular" }, "profile_image_url": "http://a2.twimg.com/profile_images/1820957590/images__13__normal.jpg", "profile_image_url_https": "https://si0.twimg.com/profile_images/1820957590/images__13__normal.jpg", "source": "&amp;lt;a href=&amp;quot;http://twitter.com/&amp;quot;&amp;gt;web&amp;lt;/a&amp;gt;", "text": "R-T if you think that the Grammy's should organize an \"R.I.P. Whitney Houston\" tribute. #IWIllAlwaysLoveYou http://t.co/dRc4dXH3", "to_user": null, "to_user_id": null, "to_user_id_str": null, "to_user_name": null }, </code></pre> <p>If you noticed Media under entities not available in above 2 and when i tried to call below snippet gives me null reference error</p> <pre><code> MediaUrl = (from user in tweet["entities"]["media"] select new mediaUrl { shortUrl = (string)user["url"], longUrl = (string)user["expanded_url"], url = (string)user["media_url"], start = user["indices"][0].ToString(), end = user["indices"][1].ToString(), mediaType = (string)user["type"], }).ToList() </code></pre> <p>Same code work for Entities/URL, Hashtags and mentions but not for Media. </p> <p>Also tried this -> <a href="https://stackoverflow.com/questions/8695524/get-json-object-node">Get JSON object node</a> but still getting null reference exception :(</p> <p>Need urgent help. thanks in advance</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload