JSONResponse, JSONSuccess and JSONError are for building answers accept_method is a decorator to check if the method to access the view is accepted