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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:53:42+00:00 2026-05-28T06:53:42+00:00

How can I get the array values return by a Json format in twitter.

  • 0

How can I get the array values return by a Json format in twitter. I’ve already know how to handle json format from yahoo and fb but, the json format returned by twitter is different with a callback function.

fb

my({
   "data": [{
            "name": "May Ann Salle",
            "created_time": "2012-01-09T12:29:19+0000"
           }]
});

twitter

my([
      {
        "recipient_screen_name": "1stone"
      },
      {
        "recipient_screen_name": "2ndone"
      }
]);



$.each(my, function(i, tw) { 
        disp += tw.recipient_screen_name;   
});

alert(disp);

but I only get the 1st one, I’m unable to get the 2nd one of array.

  • 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-28T06:53:43+00:00Added an answer on May 28, 2026 at 6:53 am

    You should mention this is about JSON-P not just JSON.

    Anyway, you’ll probably need different callbacks for each data-set.

    // your callback function
    function myTwitterCb(data) {
      var disp = ""
      var len = data.length
      var tw = {} // placeholder object
      for (var i = 0; i < len; i++) {
        tw = data[i]
        disp += tw.recipient_screen_name
      }
      doSomethingElseWith(disp)
    }
    
    function myFacebookCb(response) {
      var data = response.data
      var len = data.length
      var fb = {} // placeholder object
      for (var i = 0; i < len; i++) {
        fb = data[i]
        disp += fb.name
      }
      doSomethingElseWith(disp)
    
    
    }
    
    function doSomethingElseWith(disp) {
      // draw it to the screen or something
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get an array of values from an associative array ? Associate
how can i get elements uniquely from an array
how can i get [user_id] from this array? Array ( [2] => cbpaidSubscription Object
I wanted to know how can we get the index of the array if
If I have an array as $keys => $values , how can I get
I have following array return from server side: [json] => Array ( [0] =>
Please tell me how can I get array of all Those DIV of specific
How can I get the last key of an array?
I can get easily see what projects and dlls a single project references from
I have a ASP.NET web service decorated with System.Web.Script.Services.ScriptService() so it can return 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.