Add and use decorator `json_api_edit`