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 8207837
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T09:07:48+00:00 2026-06-07T09:07:48+00:00

I ve got a twitter json Feed.the thing is i m getting error while

  • 0

I ve got a twitter json Feed.the thing is i m getting error while parsing the json feed .i m using jsonkit.below is the json url.i want to parse the value text and profile_background_image_url in the below json feed.cud u guys help me out

[
{
    "created_at": "Mon Jul 09 21:46:49 +0000 2012",
    "id": 222446736654872580,
    "id_str": "222446736654872576",
    "text": "@mevru you have to go to  : http://t.co/pPGYijEX",
    "source": "web",
    "truncated": false,
    "in_reply_to_status_id": 222445085235752960,
    "in_reply_to_status_id_str": "222445085235752961",
    "in_reply_to_user_id": 146917266,
    "in_reply_to_user_id_str": "146917266",
    "in_reply_to_screen_name": "mevru",
    "user": {
        "id": 145125358,
        "id_str": "145125358",
        "name": "Amitabh Bachchan",
        "screen_name": "SrBachchan",
        "location": "Mumbai, India",
        "description": "Actor ... well at least some are STILL saying so !!",
        "url": "http://srbachchan.tumblr.com",
        "protected": false,
        "followers_count": 3022511,
        "friends_count": 415,
        "listed_count": 22016,
        "created_at": "Tue May 18 05:16:47 +0000 2010",
        "favourites_count": 10,
        "utc_offset": 19800,
        "time_zone": "Mumbai",
        "geo_enabled": false,
        "verified": true,
        "statuses_count": 14166,
        "lang": "en",
        "contributors_enabled": false,
        "is_translator": false,
        "profile_background_color": "BADFCD",
        "profile_background_image_url": "http://a0.twimg.com/profile_background_images/144221357/t-1.gif",
        "profile_background_image_url_https": "https://si0.twimg.com/profile_background_images/144221357/t-1.gif",
        "profile_background_tile": true,
        "profile_image_url": "http://a0.twimg.com/profile_images/2227330575/Amitji_normal.png",
        "profile_image_url_https": "https://si0.twimg.com/profile_images/2227330575/Amitji_normal.png",
        "profile_link_color": "FF0000",
        "profile_sidebar_border_color": "F2E195",
        "profile_sidebar_fill_color": "FFF7CC",
        "profile_text_color": "0C3E53",
        "profile_use_background_image": true,
        "show_all_inline_media": true,
        "default_profile": false,
        "default_profile_image": false,
        "following": null,
        "follow_request_sent": null,
        "notifications": null
    }

following is the ios code that i used to parse

 jsonurl=[NSURL URLWithString:@"https://api.twitter.com/1/statuses/user_timeline.json?screen_name=@SrBachchan&count=10"];

jsonData=[[NSString alloc]initWithContentsOfURL:jsonurl];

jsonArray = [jsonData objectFromJSONString]; 

items = [jsonArray objectForKey:@"text"];

NSLog(@"the given text:%@",items);
story = [NSMutableArray array];
title = [NSMutableArray array];
picture = [NSMutableArray array];

for (NSDictionary *item in items )
{


}
  • 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-07T09:07:49+00:00Added an answer on June 7, 2026 at 9:07 am

    The problem is in this line:

    items = [jsonArray objectForKey:@"text"];
    

    As your code suggest it’s an array not a dictionary thus you have grab the object from the array first:

    for (NSDictionary *item in jsonArray ) {
         NSDictionary *user = [item objectForKey:@"user"];  
         NSString *imageURLString = [user objectForKey:@"profile_image_url"];
    
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Got the following error when using Ruby irb to test simple twitter status update
I got this error when using the Twitter gem, and passing in an array.
Got this error message while trying to load view: The model item passed into
For some reason my json twitter parser isn't working? Anyone got any ideas as
why is the code below showing 'got the result null' alertbox ? while the
The page I want to open using twitter app: https://twitter.com/#!/PAGE To open twitter app
I've got a pipes jSON feed @ http://pipes.yahoo.com/pipes/pipe.run?_id=32188be96d1caf97c46a6fcfd8c00820&_render=json { count:4, value:{ title:Copy of Twitter
I got the following code and im using twitter bootstrap. <div class=span10> <div class=span2>@Html.Label(lblUsername,
I've just got into using Omniauth for logging in with Twitter and Facebook and
Hi Having an activity that loads a twitter feed. Android Twitter String to Json

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.