Skip to content
Advertisement

Convert json data to a html table [closed]

Is there any jQuery or javascript library that generates a dynamic table given json data? I don’t want to define the columns, the library should read the keys in the json hash and generate columns.

Of course, I can myself iterate through the json data and generate the html table. I just want to know if any such library exists which I can simply reuse.

Advertisement

Answer

Thanks all for your replies. I wrote one myself. Please note that this uses jQuery.

Code snippet:

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement