print JSON text on the fly on a web page?

This question already has an answer here:

  • How can I pretty-print JSON using JavaScript? 20 answers

  • I have used a library called Swagger before. It has most of the components separated out into individual libraries but this Demo shows how it looks when connected.

    The library will print the JSON in a pretty format and it allows for people to enter different request information. It may be a little heavy for what you need but some of the libraries may be useful.

    链接地址: http://www.djcxy.com/p/8444.html

    上一篇: Json文件中的多行

    下一篇: 在网页上即时打印JSON文本?