Skip to content

overtrue/json-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

A tool for make JSON view in browser.

Usage

<link rel="stylesheet" href="json-viewer/json-viewer.css">
<script src="path/to/jquery.js"></script>
<script src="json-viewer/json-viewer.js"></script>

<div id="json-container"></div>

<script>
    var json = {
        name: "JsonViewer",
        author: {
          name: "overtrue",
          email: "i@overtrue.me",
          contact: [
            {
              location: "office",
              number: 123456
            },
            {
              location: "home",
              number: 987654
            }
          ]
        }
    };

    $('#json-container').jsonview(json); // Support json string/object
</script>

Demo

License

MIT

About

A tool for make JSON view in browser.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published