You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use System.Text.Json but a number of my dependencies use JSON.NET. Some of these dependencies serialize arbitrary objects, others take types like Dictionary<string, object?>.
This makes deserializing with STJ more difficult, since the arbitrary objects and the object?s in the above dictionary are either JsonNode or JsonElement, and when my dependencies serialize, the serialization does not work.
Could JSON.NET add converters for the four STJ types (JsonValue, JsonArray, JsonObject, and JsonElement)? Adding support for this would make the path to STJ smoother, as well as making it easier to maintain both dependencies.
I know JSON.NET is mostly in maintenance mode, but this improvement is justified in my opinion. If there's interest in this, I could try to implement it myself.
The text was updated successfully, but these errors were encountered:
I use
System.Text.Json
but a number of my dependencies use JSON.NET. Some of these dependencies serialize arbitrary objects, others take types likeDictionary<string, object?>
.This makes deserializing with
STJ
more difficult, since the arbitrary objects and theobject?
s in the above dictionary are eitherJsonNode
orJsonElement
, and when my dependencies serialize, the serialization does not work.Could JSON.NET add converters for the four STJ types (
JsonValue
,JsonArray
,JsonObject
, andJsonElement
)? Adding support for this would make the path toSTJ
smoother, as well as making it easier to maintain both dependencies.I know JSON.NET is mostly in maintenance mode, but this improvement is justified in my opinion. If there's interest in this, I could try to implement it myself.
The text was updated successfully, but these errors were encountered: