Fixed serialisation issue in samples using Newtonsoft Json.NET #90
oskardudycz
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It seems that during the .NET upgrade, I broke Newtonsoft Json.NET serialisation. I removed the usage of
JsonConstructor
and NuGet that extended Json.NET with private constructors. Unfortunately, the test suite was not strong enough. That was strengthened up in this release.I added
ContractResolver
which enables private non-default constructors.Details
JsonObjectContractProvider
that resolves Json object constructor, to support non-default, private constructor by default.JsonSerializerSettings
and used in Newtonsoft related projects,NonDefaultConstructorContractResolver
andNonDefaultConstructorMartenJsonNetContractResolver
that useJsonObjectContractProvider
internallyNote:
JsonObjectContractProvider
will be added to Marten in the follow-up PR.This discussion was created from the release Fixed serialisation issue in samples using Newtonsoft Json.NET.
Beta Was this translation helpful? Give feedback.
All reactions