A clean way to consume Data http://truonghuutien.github.io/jdata/
Simply create an dynamics String. Like printf.
jdata.print({name:{first:"John"}}, "My Name is {name.first}.uppercase()");
If your data is an Object, like an Instance.
var templatedObject = new jdata({
name : {
first : "John",
last : "Doe"
}
}, {
firstname : "{name.first}",
lastname : "{name.last}"
});
If your data is an complex Array. Like a Collection of ressources.
var dataArray = new jdata([
{
name : {
first : "John"
}
}, {
name : {
first : "Peter"
}
},{
name : {
first : "Oliver"
}
}
], {
firstname : "{name.first}"
});
If you need some json’s template in your interface, checkout the github repository to see what you can do with jQuery and Bootstrap.