Rendering view template based on json data