add json.json, add render method to views