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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:15:06+00:00 2026-06-13T16:15:06+00:00

I have some JSON data looking like this: Extras: { T01: Value 1, T02:

  • 0

I have some JSON data looking like this:

"Extras": {
  "T01": "Value 1",
  "T02": "Value 2",
  "T03": "Value 3",
  // etc.
}

I need each of these values in a list, and so I’ve tried this:

$.each(data.result, function(i){
  $("#result").append('<li>'+data.result.Extras[]+'</li>');
});

Which obviously doesn’t work, I just can’t seem to figure out what to do. I’ve tried data.result.Extras with no luck (as I just get [object][Object]).

Any ideas what I can do to get all of the values in a list? Thanks!

  • 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-13T16:15:08+00:00Added an answer on June 13, 2026 at 4:15 pm

    You are iterating the data.result, I believe you need to iterate the Extras.

    $.each(data.result.Extras, function(k, v){
      $("#result").append('<li>'+v+'</li>');
    });
    

    Note: In the above function k is key and v is value in the object Extras. For ex: For the first iterate k would be T01 and v would be Value 1.

    The above should produce and output of

    <ul id="result">
       <li>Value 1</li>
       <li>Value 2</li>
       <li>Value 3</li>
    </ul>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some data and need to create a json file with this structure
I have a REST api which dumps some json data (user info, etc). Now
Inside my .aspx I have some JSON code that looks like this: function someFunctionName()
I have some JSON which looks generally like this... {appJSON: [ { title:Application Title,
Let's say I have some json like this in mongo: {n:5} and a java
I have a website where an ajax call will get some Json data from
I have some data that I have to serialize to JSON. I'm using JSON.NET.
I have a data() object containing some json. Is there a way I can
I have the following JSON data being returned, but for some reason, Javascript or
Suppose you have some complex JSON like: {A : valA, B : { C

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.