Convert XML data to JSON to render it with some template engine.