Parse JSON array in JSON.NET

前端 未结 3 824
梦如初夏
梦如初夏 2021-01-24 03:51

I have JSON object in REST API response:

{
    Result:
    [
        {
            \"id\": 1,
            \"id_endpoint\": 1,
            \"name\": \"Endpoint 1\         


        
3条回答
  •  说谎
    说谎 (楼主)
    2021-01-24 04:18

    You can use JsonDeserialize to parse json

    var array = JsonConvert.DeserializeObject>(str);
    

提交回复
热议问题