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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T18:20:40+00:00 2026-05-23T18:20:40+00:00

So i have some json data and i am trying to extract the following

  • 0

So i have some json data and i am trying to extract the following data elements:

"name"
"l" = current price
"c" = change in price

Yet using the following code the data (all the data) is displayed as Object Object;

  1. How would i select the “name”, “l” and “c” data figures from the json data
  2. Why is the data displaying as OBJECT OBJECT ?

As i am new to JSON i am looking forward to your responses all the information you provide will help me greatly !

 $.getJSON('http://www.google.com/finance/info?infotype=infoquoteall&q=SHMN,^DJI,^IXIC,^BSESN,^SPX,^FTSE&callback=?', function(data){


     var items = [];

  $.each(data, function(key, val) {
    items.push('<li id="' + key + '">' + val + '</li>');
  });

  $('<ul/>', {
    'class': 'my-new-list',
    html: items.join('')
  }).appendTo('body');
     });

Here is the fiddle: http://jsfiddle.net/A4jKT/12/

  • 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-23T18:20:41+00:00Added an answer on May 23, 2026 at 6:20 pm

    You could use it like an object. So for instance you could do the following to get the ‘l’ property:

    items.push('<li id="' + key + '">' + val.l + '</li>');
    

    Or if you want the name:

    items.push('<li id="' + key + '">' + val.name + '</li>');
    

    Since at the moment you are just pushing the whole object (val) into items. You can reference the fields in that object.

    Working Demo: http://jsfiddle.net/naveen/c2VeD/

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

Sidebar

Related Questions

I have been trying to serialize some json data in Silverlight. I am using
Hi, i have been having some problems using JSON data in flash builder lately
UPDATED: I have the following code, where I am trying to use returned JSON
Im trying to append some JSON data from the last.fm API, I have been
Im trying to append some JSON data from the last.fm API, I have been
I have been trying to display json data in my jsp using struts and
I am trying to load some JSON data into to a table using the
I have a website where an ajax call will get some Json data from
I am trying to output some Java objects as JSON, they have List properties
I'm trying to generate a JSON response that includes some HTML. Thus, I have

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.