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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:06:53+00:00 2026-05-26T05:06:53+00:00

I am parsing JSON data and retrieving 3 values in each node, $.each($.parseJSON(data), function

  • 0

I am parsing JSON data and retrieving 3 values in each node,

$.each($.parseJSON(data), function (key, val) {
    Var X = val.date;
    Var y = val.type;
    Var z = val.text;
});

Example JSON data

val.date= '2011/02/09', val.type=3, val.text = 'Some text'

I wanna store these values in a array as in

var arrA = new Array();
arrA[0] = new Array(X,Y,Z);
arrA[1] = new Array(X,Y,Z); etc

WHere X,Y,Z changesfor every node in JSON data.
At the end of which my arrA should contain the following data

['2011/02/09', 3, 'Some text'],
['2011/12/11', 3, 'something to show']
.
.
.
['2011/02/08,3,'something else']

What is the best way to do that?

Thanks,
Adarsh

  • 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-26T05:06:53+00:00Added an answer on May 26, 2026 at 5:06 am
    var arrA = new Array();
    
    $.each($.parseJSON(data), function (key, val) {
        arrA.push([val.date, val.type, val.text]);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having difficulty parsing some JSON data returned from my server using jQuery.ajax() To
Am am successfully parsing and sending JSON values from my client for my server
I'm trying to work on a new project parsing some JSON data for a
I have a jQuery ajax function that retrieves JSON data. In the success block
I have a function $.post('php/client.login.php', {username:username, password:password}, function(json){ var ids = json; alert(json.id); },
After parsing JSON data in a Data class, I set the UIViewController's NSArray *headlines
i am using json parsing in my application and this is my json data
I am parsing Json Data into an NSDecimalNumber as follows product.Price = [NSDecimalNumber decimalNumberWithDecimal:[[jProduct
I was wondering if anyone had any pointers for parsing json data consumed from
Anybody can give me a Android tutorial for parsing Json data which is located

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.