CosmosSerializationOptions to support other Newtonsoft options such as converters #2064
Unanswered
scottluskcis
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Adding link to existing issue that is related 1813 |
Beta Was this translation helpful? Give feedback.
0 replies
-
The reason is in the v4 SDK which will align with the Azure Core SDK guidelines requires the SDK to not take a dependency on Newtonsoft, but instead use the new more performant System.Text.Json. To make it an easier conversion from the v3 to v4 SDK it was decided to not directly expose any dependencies to Newtonsoft. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For the CosmosJsonDotNetSerializer it accepts a CosmosSerializationOptions object which then just gets mapped to Newtonsoft JsonSerializerSettings. This limits what we can do when want to do things such as using Custom JSON Converters because only the following properties are being used.
Is there a reason why CosmosSerializationOptions doesn't support additional JsonSerializerSettings? Also the class is
internal
so prevents from any overrides of this behavior.Can the class either be made public and be extended or can there be a way to support more JsonSerializerSettings, that would be a great help. Opening discussion on this to get any inputs. Thanks for your feedback!
Beta Was this translation helpful? Give feedback.
All reactions