Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Reading a JSON (Serialize) Data

Posted on 2013-01-14
Medium Priority
Last Modified: 2013-01-14
Hi Folks,

I have the following json data


Open in new window

How do I read scoreArray value of 20 which is the last value in Javascript


Question by:rgarimella
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 82

Expert Comment

ID: 38776662
for example :
var j = {
    "CTS": "0,51,52",
    "lastTopic": 53,
    "questions_answered": [
    "scoreArray": [4,5,6,8,1,2,9,3,0,4,5,6,8,1,2,9,3,0],
    "06_01": 20

for(v=0;v<j.scoreArray.length;v++) {

Open in new window


Author Comment

ID: 38776717
Thanks, but this code does not read the value of "06_01": 20

All I need is the value stored in 06_01
LVL 82

Accepted Solution

leakim971 earned 2000 total points
ID: 38776727
Use : j["06_01"]
Test page :

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question