Render arbitrary JSON in HTML

前端 未结 4 1356
感动是毒
感动是毒 2021-01-13 23:47

I\'m writing a data viewer page to render objects being sent as JSON from the server. The JSON objects vary in content and complexity, from flat objects with a handful of at

4条回答
  •  忘掉有多难
    2021-01-14 00:20

    Check out the source code for visualizer.json2html.com as it pretty much will visualize any json you throw at it.

    Here is a screenshot of what the visualizer was able to do with your json sample above .. again the code is all there and ripe for the picking :)

    enter image description here

提交回复
热议问题