Skip to content

Dj-Corps/jquery.json-viewer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery json-viewer

json-viewer is a jQuery plugin for easily displaying JSON objects by transforming them into HTML.

Features:

  • Syntax highlighting
  • Collapse and expand child nodes on click
  • Clickable links
  • Easily readable and minimal DOM structure

Check out the demo page!

Usage

Import jquery.json-viewer.js and jquery.json-viewer.css in your application.

Then just call the jsonViewer() method and pass your JSON data in argument:

<pre id="json-renderer"></pre>
var data = {
	// ...
};
$('#json-renderer').jsonViewer(data);

About

About

jQuery plugin for displaying JSON data

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 60.4%
  • HTML 26.0%
  • CSS 13.6%