added JSONResponse(http response) and snippet_list to views