#Broken Serialization after using [JsonProperty]

1 messages · Page 1 of 1 (latest)

junior spade
#

Broken Serialization after using [JsonProperty]

soft flax
#

There's no special caching or handling for that.

#

It's @serializable() - maybe because of the missing () ?

junior spade
#

Sorry, just a typo when replicating it here.

#

It also works when I put e.g. [JsonObject(MemberSerialization.Fields)]on the class. When I remove it again, it stops working.

soft flax
#

It sounds a bit like something is wrong but adding/removing the attribute doesnt persistently cause a different behaviour. Do you see any errors in the console?

junior spade
#

no

#

I had a [JsonObject(MemberSerialization.OptIn)] on the base class...

#

🤫 going to delete this...