Transformation
The core feature of Junter is transforming JSON data into HTML. This is done using the .render()
method. You pass in a JSON object, and Junter returns the corresponding HTML.
JSON to HTML
For instance, let's say we have a simple JSON object that represents a paragraph:
Input
js
const json = { "p": "Hello, world!" }
// You can transform this JSON into HTML as follows
const html = junter.render(json)
Output
html
<p>Hello, world!</p>