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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:20:57+00:00 2026-06-18T11:20:57+00:00

I am working on the GUI for a web app and they want me

  • 0

I am working on the GUI for a web app and they want me to use json to get values. I have a simple script to pull the value of a key, but it’s not working.

HTML

<div class="get-data">
  <p>Get Data</p>
  <div class="json"> 
      <!--<p> will be created here --> 
  </div>
</div> 

JSON

 [
     {
        "id":-596859137166526783,
        "avatarDefinitionId":2,
        "tenantId":1,
        "avatarName":"qln320",
        "attributes":{
             "qln320.set.media.handling":"TEAR_OFF",
             "qln320.snr.memory.free":"66939392",
      }
     }
 ]    

jQuery

 $.getJSON('json/test.json', function(data) {
 var items = [];

 data[0].attributes['qln320.snr.memory.free'];

 $('<p/>', {
   'class': 'raw-list',
   html: items.join('')
   }).appendTo('.json');
 });
  • 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-18T11:20:59+00:00Added an answer on June 18, 2026 at 11:20 am

    You are iterating through attributes object, val in your code returns value of qln320.set.media.handling and qln320.snr.memory.free properties, in fact it returns "TEAR_OFF" and "66939392", but you are pushing hard-coded val.qln320.snr.memory.free strings regardless of the returned values.

    $.each(data[0].attributes, function (key, val) {
        items.push(val);
    });
    
    $('<p/>', {
        'class': 'raw-list',
        html: items.join('')
    }).appendTo('.json');
    

    http://jsfiddle.net/XDZ8Y/

    However the error, [TypeError: a is undefined] is not be related to the posted script.

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

Sidebar

Related Questions

I'm working on a simple GUI Python script to do some simple tasks on
I was working on a simple GUI script yesterday using jdbc in eclipse. When
I'm working on a simple GUI code editor in Python, and I want to
I'm working on the Web GUI of an appliance-like product. I have an HTML
I'm working on a GUI framework, where I want all the elements to be
I am working on coding a GUI with C#. I'm following this simple tutorial
I have been working on a web services related project for about the last
I'm new to Google Apps Script. I'm working my way through some simple example
I am creating a web GUI for an application I am working on. This
I am working on a C++ project with openCV. It is a simple web

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.