A jquery plugin for easy integration between JSON and HTML. Maintaining harmony and peace between interface programmers and server programmers when using REST services.
- jQuery support: 1.7+
For credits and examples, see: http://www.fabianomiranda.com.br/miranda-js/
For downloads, see: http://www.fabianomiranda.com.br/miranda-js/miranda-js.zip
The attribute name of the list or object must be the name of the key in its HTML code between [[]].
Example:
{KEY:"Miranda-JS"}
<h1>[[KEY]]</h1>
<div id="box">
<h1>[[name]]</h1>
<h2>[[lastname]]</h2>
</div>
<script>
var list = {"name": "Fabiano", "lastname": "Miranda"};
$("#box").mirandajs(list);
</script>
<div id="box">
<h1>[[name]]</h1>
<h2>[[lastname]]</h2>
</div>
<script>
var list = [{"name": "Fabiano", "lastname": "Miranda"},{"name": "Kaio", "lastname": "Silva"}];
$("#box").mirandajs(list);
</script>
- Concept and development by Fabiano Miranda for Original Media.