I'm using json.net for first time. It's really simple, but I have a problem: It seems to be JsonConvert.SerializeObject(Model, Formatting.Indented) should return no references and by using PreserveReferencesHandling = Ignore, it should dispose $id attributes as well, but I can't manage it.
My JsonConvert.SerializeObject call is in a razor view (MVC3) and JSON string I'm getting is
{"Items": [
{
"$id": \"1\",
"ID_DB": 18,
"ID_SAP": null,
...
}]
}
Perhaps, I need to change Web.config or put more config settings in another file(s) in my project. Please, can you tell me what I'm missing?
Thanks you all in advance.
Regards
Tistklehoff