parse Json text to C# object in asp mvc 4

.net, asp.net-mvc, asp.net-mvc-4, c#, json

Solution

Many people use Json.net for serialization

var log  = JsonConvert.DeserializeObject<YourObject>(logJson)

and the other direction

  var logJson = JsonConvert.SerializeObject(log);

Problem

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 separating them by (`=` => name , value) (`;` => attribute , attribute) but the code wasn't elegant at all! so i stat thinking of saving them as `Json` string but I couldn't found a `Json to object parser` while we need only to call `json()` to parse `object to json string` is there a better way than using json string and is there json string parser provided ?

Original source