Added JSON-rendering.