How to filter JSON array in C#

前端 未结 3 2043
独厮守ぢ
独厮守ぢ 2020-12-10 08:03

I have spent a lot of time to find a solution for my problem.

In this example, I have 2 records in SetNavRecords array. The first one is \"Artikelnummer\" :

3条回答
  •  悲哀的现实
    2020-12-10 08:40

    I would have created classes by the name SetNavRecords and OfflineVerkaufspreis. Then I would have used JavaScriptSerializer from namespace System.Web.Script.Serialization.JavaScriptSerializer to deserialize it.

    Code goes like this-

    JavaScriptSerializer.Deserialize(String, Type);
    

    Then I can operate it like simple generic collection eg. list.

    Hope this will help you little bit.

提交回复
热议问题