?
Solved

from json to table

Posted on 2014-02-16
3
Medium Priority
?
213 Views
Last Modified: 2014-02-16
for ex let's say we have this data:
var data = {
      header: ["First Name", "Last Name"],
      rows: [
            ["The", "Pope"],
            ["Ronald", "Reagan"],
            ["George", "Bush"]
      ]
};

i'm having issues with the following:

i need code that will turn this into a table (Not using datatables but just a simple html table) and take into account a varying number of columns.

thanks
0
Comment
Question by:dgrafx
[X]
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
3 Comments
 
LVL 143

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 2000 total points
ID: 39863096
you will find many examples on the net to do this, here is one good examples:
https://github.com/afshinm/Json-to-HTML-Table
0
 
LVL 25

Author Closing Comment

by:dgrafx
ID: 39863159
Thanks
0

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

Hi all! Recently there was EE question and the person wanted to have a multi-column textbox <div> selection, so as a first step to answer I provided a link but that was not complete with JavaScript selection, but had a good style sheet. So as a ques…
Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

718 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