Продолжение
This commit is contained in:
@@ -39,12 +39,12 @@ internal class EntityConverter : JsonConverter
|
||||
public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer)
|
||||
{
|
||||
Dictionary<string, object?> dictionary = DictionarySerialization(value!);
|
||||
|
||||
/*
|
||||
if (value.GetType() != typeof(Entity))
|
||||
{
|
||||
dictionary.Remove("Entity");
|
||||
}
|
||||
|
||||
*/
|
||||
switch (value)
|
||||
{
|
||||
case Entity entity:
|
||||
@@ -61,6 +61,7 @@ internal class EntityConverter : JsonConverter
|
||||
foreach (KeyValuePair<string, object> keyValuePair in dictionary)
|
||||
{
|
||||
writer.WritePropertyName(keyValuePair.Key, true);
|
||||
|
||||
serializer.Serialize(writer, keyValuePair.Value);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user