parse Json text to C# object in asp mvc 4

前端 未结 3 1675
情深已故
情深已故 2021-02-19 22:42

I have a huge amount of customized attributes I want to save them in the DataBase, I was confused of how to store them in the database, i thought of storing them as a string sep

3条回答
  •  不思量自难忘°
    2021-02-19 23:04

    Try to use System.Web.Script.Serialization.JavaScriptSerializer, here is example:

    var yourObject = new JavaScriptSerializer().Deserialize(strInput)
    

    or

    var yourObject = new JavaScriptSerializer().Deserialize(strInput)
    

提交回复
热议问题