You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ReferenceId vs [JsonProperty(IsReference = true)] vs object #222
Currently I get the feeling that we could reduce the size of the serialized data a lot when references are not the object but the integer.
E.g. using a serializer such as the JsonSerializer from Newtonsoft.Json, by default it will serialize all objects it encounters by value, thus the EquipmentConfigurationGroup with the list of EquipmentConfigurations in full multiple times instead of only writing a reference to a fully serialized object that is then the only fully serialized object in the Json file.
OR:
(For Newtonsoft.Json library:)
We could add [JsonProperty(IsReference = true)] to each property that is a reference so to not break the data model or setting the PreserveReferencesHandling of the JsonSerializer to objects.
But this would add a new kind of reference "$id" & "$ref" what I do not want (I'm using another reference format).
See: newtonsoft documentation
Activity