Cannot deserialize the current JSON object into type 'System.Collections.Generic.List

前端 未结 3 1164
深忆病人
深忆病人 2021-01-25 23:44

I am trying to read my JSON result.

Here is my JsonResult

public class JsonResult
    {
    public string ResponseStatus;
    public string Status;
    p         


        
3条回答
  •  天涯浪人
    2021-01-26 00:24

    In your Json string, Data is an object, not an array. So your JsonResult class should look like this:

    public class JsonResult
    {
        public string ResponseStatus;
        public string Status;
        public string Remarks;
        public string ErrorCode;
        public Data Data;    
    }
    

提交回复
热议问题