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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T06:31:56+00:00 2026-05-14T06:31:56+00:00

I changed the tree of my JSON-P output, and i cannot access to my

  • 0

I changed the tree of my JSON-P output, and i cannot access to my object DOM anymore :

Here’s my output :

jsonp1271634374310(
{"Inter-Medias":
    {"name":"Inter-Medias","idGSP":"14","average":"80","services":"8.86"}
});

And here’s my jQuery script :

success: function(data, textStatus, XMLHttpRequest){
widget = data.name;
widget += data.average ;
....
  1. I know one level is missing, but if I try to do : data.Inter-Medias.name or data.name.name
    it’s still not working.
    Any idea please ?

Thank you.

  • 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-14T06:31:56+00:00Added an answer on May 14, 2026 at 6:31 am

    Your question is a bit confusing but I think what your issue is the JSON key. Try doing this:

    data["Inter-Medias"].name
    

    Now if you are expecting multiple objects you want the root element in your JSON to be an array.

    [
        {
            "name" : "A",
            "average" : 1
        },
        {
            "name" : "B",
            "average" : 2
        }
    ]
    

    In code you can access it like this.

    var obj = null, length = data.length;
    for (var i = 0; i < length; i++) {
        obj = data[i];
        if (obj.name === "A") {
            runningAverage += obj.average;
        }    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to get my datatable to take a POST JSON output from
I have a tree view (similar to http://mbostock.github.com/d3/talk/20111018/tree.html ) except I changed the expand/contract
I got that little function(I changed the name of variables) Private Function everythingLinked(ByRef myClass
My current implementation of how to output my binary tree is getting me an
Here is an exerpt from the php_decoded JSON structure that I am working with
As the title says, I'm trying to ftpsync changed tree to our dev web
I've added a submodule in my main git folder tree and haven't changed anything
I have a JSON tree structure that is generated dinamically, this means the keys
I have an object (parse tree) that contains child nodes which are references to
How can i change image index of a tree view node in a threadsafe

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.