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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T20:10:13+00:00 2026-05-28T20:10:13+00:00

I am making an Ajax that returns JSON. I can see the returned JSON

  • 0

I am making an Ajax that returns JSON. I can see the returned JSON in Firebug and validated it against JSLint but
I am not able to extract the content. Heres what I am seeing:

Data: {"shipments":[{"companyName":"GLOBAL SOL INC.", so on...........}]}

load: function(data){
    console.log("responseText " + data.responseText);

**Above results in: responseText undefined**

    var myVar = data.shipments;

    console.log("myVar " + myVar);

Above results in myVar [Object object]

  • 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-28T20:10:15+00:00Added an answer on May 28, 2026 at 8:10 pm

    In your example, myVar refers to an array that contains objects. To get the companyName value, use data.shipments[0].companyName or myVar[0].companyName.

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

Sidebar

Related Questions

I'm making AJAX calls to a server that sometimes return unparseable JSON. The server
I'm working on a web page where I'm making an AJAX call that returns
I'm making an ajax post to a webmethod EmailFormRequestHandler , I can see on
I'm making an AJAX call to a page that returns XML. It turns out
I'm making an ajax get call that returns me contents of html page. I'm
I have a template set up that I'm making ajax calls to via jQuery.
What's the best practice for making sure that certain ajax calls to certain pages
I'm making a webpage with dynamic content that enters the view with AJAX polling.
I am making a 2D game in javascript/ajax, that will be using data stored
I've been getting an 'Invalid JSON' after making a jQuery AJAX Request. This request

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.