Is there a really easy way I can take an array of JSON objects and turn it into an HTML table, excluding a few fields? Or am I going to have to do this manually?
Take the 2-minute tour
×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
I'm not sure if is this that you want but there is jqGrid. It can receive JSON and make a grid. |
|||||||||
|
Using jQuery will make this simpler. The following will take an array of arrays and store convert them into rows and cells.
You could add a check for the keys you want to exclude by adding something like
at the start of the getJSON cbf and adding
around the tbl_row += line. Edit: Was assigning a null variable previously |
||||
|
You could use a jQuery plugin that accepts JSON data to fill a table. jsonTable |
|||
|