jQuery JSON Presenter Plugin - Troubleshooting JSON made easy
The jQuery JSON Presenter Plugin provides drop-in JSON presentation for any and all your JSON objects making troubleshooting and reporting much easier.
The unreleased development files can be obtained by:
- Downloading or forking this repository
- Setup the build
- Run
grunt
to create the built files in the "dist" directory
Include jQuery and the plugin on a page. Then select a form to validate and call the jsonPresenter
method, providing whatever JSON you want as a plugin option.
<script src="jquery.js"></script>
<script src="jquery.jsonPresenter.js"></script>
<div id="container"></div>
<script>
$("#container").jsonPresenter({
json: {"foo":"bar"}
});
</script>
Alternatively include jQuery and the plugin via requirejs in your module.
define(["jquery", "jquery.jsonPresenter"], function( $ ) {
$("#container")jsonPresenter({
json: {"foo":"bar"}
});
});
See the Contributing Guidelines for details.
Copyright © 2014 Steven Pease
Licensed under the MIT license.