hi could you help me understand why newtonsoftjson support is a separate package #1477
-
I am using gremlin api in cosmosdb with latest version 12.x |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
It's a separate package because result deserialization using Newtonsoft.Json is just one means to facilitate deserialization, and because nothing in the core library depends on Newtonsoft.Json, it's carried out in a kind of pluggable fashion. Unless you replicate the deserialization using something else (e.g. System.Text.Json), you will have to bring the package in. There is no package for System.Text.Json but there will hopefully be in the future, albeit as a commercial extension. |
Beta Was this translation helpful? Give feedback.
It's a separate package because result deserialization using Newtonsoft.Json is just one means to facilitate deserialization, and because nothing in the core library depends on Newtonsoft.Json, it's carried out in a kind of pluggable fashion. Unless you replicate the deserialization using something else (e.g. System.Text.Json), you will have to bring the package in. There is no package for System.Text.Json but there will hopefully be in the future, albeit as a commercial extension.