public string GetChannelScale(string json) { ResultInfo resultInfo = new ResultInfo(); try { Request request = JsonConvert.DeserializeObject <Request>(json); string FilePath = request.filepath; var item = citHelper.GetChannelScale(request.channelnum, FilePath); string result = JsonConvert.SerializeObject(item); resultInfo.flag = 1; resultInfo.msg = ""; resultInfo.data = result; } catch (Exception ex) { resultInfo.flag = 0; resultInfo.msg = ex.Message; } return(JsonConvert.SerializeObject(resultInfo)); }