Home > jquery-jsonml

jquery-jsonml

Jquery-jsonml is a project mainly written in JavaScript, it's free.

JsonML extension to jQuery

JsonML extension to jQuery library

This script extends the jQuery library with ability to create DOM tree from JsonML array format.

Usage

$.jsonml(JSON.parse('["span", { "class" : "code-example-third" }, "Third"]')).appendTo(document.body);

You can also use this method to create DOM tree in a different document:

$.jsonml(JSON.parse('["span", { "style" : "background-color:maroon" }, "u00A9"]', otherDoc)).appendTo(otherDoc.body);