I noticed some strange conclusion from Newtonsoft.Json today, I'm not sure if this is an interaction with F # types or something that could happen in C #, so I tagged. I have a list of the following entry:
type SplitTracker = { [<JsonIgnore>] split : SplitDefinition mutable start : duration mutable ``end`` : duration mutable lapCount : int mutable duration : duration Option }
I serialize it using JsonConvert.SerializeObject and I get the following odd output:
"splits": [ { " start@ ": "0.00", " end@ ": "0.00", " lapCount@ ": 0, " duration@ ": null, "start": "0.00", "end": "0.00", "lapCount": 0, "duration": null }, { " start@ ": "0.00", " end@ ": "0.00", " lapCount@ ": 0, " duration@ ": null, "start": "0.00", "end": "0.00", "lapCount": 0, "duration": null }
Does anyone know why this might happen? The data is correct, the problem of duplication of fields with the symbol "@".
source share