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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T01:47:25+00:00 2026-06-10T01:47:25+00:00

From JSON object below {cols:[{id:t,label:Title,type:string},{id:l,label:Avg ,type:string},{id:lb,label:High,type:string},{id:lo,label:Low,type:string}],rows:[{c:[{v:Change navigation},{v:5.6666666666667},{v:10},{v:1}]},{c:[{v:Executive leadership},{v:6.0666666666667},{v:7},{v:3}]},{c:[{v:Business ownership},{v:5.8095238095238},{v:10},{v:2}]},{c:[{v:Change enablement},{v:6.4285714285714},{v:9},{v:5}]}]} how can i get

  • 0

From JSON object below

{cols:[{"id":"t","label":"Title","type":"string"},{"id":"l","label":"Avg ","type":"string"},{"id":"lb","label":"High","type":"string"},{"id":"lo","label":"Low","type":"string"}],rows:[{"c":[{"v":"Change navigation"},{"v":5.6666666666667},{"v":"10"},{"v":"1"}]},{"c":[{"v":"Executive leadership"},{"v":6.0666666666667},{"v":"7"},{"v":"3"}]},{"c":[{"v":"Business ownership"},{"v":5.8095238095238},{"v":"10"},{"v":"2"}]},{"c":[{"v":"Change enablement"},{"v":6.4285714285714},{"v":"9"},{"v":"5"}]}]}

how can i get something like

[['Change navigation',6.5333333333333],['Executive leadership',6.0666666666667],['Business ownership',5.8095238095238],['Change enablement',6.4285714285714]]

somebody posted the code for one dimensional array from this.cant figure out multidimensional in javascript

var arr = [],
i = 0;
for (; i < json.rows.length; i++) {
arr.push(json.rows[i].c[0].v + '=' + json.rows[i].c[1].v);

}

which gives

['Change navigation=6.5333333333333','Executive leadership=6.0666666666667', 'Business ownership=5.8095238095238','Change enablement=6.4285714285714']
  • 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-10T01:47:26+00:00Added an answer on June 10, 2026 at 1:47 am

    Instead of pushing a concatenated string, push an entire array to your existing array:

    var arr = [];
    for(var i = 0, l = json.rows.length; i < l; i++) {
        arr.push([ json.rows[i].c[0].v, json.rows[i].c[1].v ]);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From JSON string below {cols:[{id:t,label:Title,type:string},{id:l,label:Avg ,type:string},{id:lb,label:High,type:string},{id:lo,label:Low,type:string}],rows:[{c:[{v:Change navigation},{v:5.6666666666667},{v:10},{v:1}]},{c:[{v:Executive leadership},{v:6.0666666666667},{v:7},{v:3}]},{c:[{v:Business ownership},{v:5.8095238095238},{v:10},{v:2}]},{c:[{v:Change enablement},{v:6.4285714285714},{v:9},{v:5}]}]} How do i get
I'm trying to get the JSON object from a JSON outputted string from a
So, I'm getting a bunch of string values from a JSON object and then
I am getting a JSON object from a webMethod by the call below and
I need to convert a string to a JSON object that gets returned from
The json data object below is what's returned from a custom Google search API
Performance issue, when generating around 800~ options from jSon object via javascript. Any suggestion,
I am taking a date from a JSON object in the format of 2012-12-31
I want a method that extracts the data from a JSON-object parsed before as
I want to create a JSON object from my MySQL results with PHP so

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.