An Ajax action in Sinatra is returning a JSON object. In a view, I want to render a table based on this JSON object. It, in fact, contains the list on some items.

Of course I can render the table by using JavaScript. I would parse the JSON and, for each item in it, I would render the table rows and so forth.

Is there an easier way to do that?