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
It may make sense to make this built-in rather than a plugin. In any case we'll need to think about how this co-exists or not with the Newtonsoft.Json plugin, etc. Also need to think about whether we use Utf8JsonWriter, some other API, etc.
Reacted by Austin Drenski, angelMachin, Soheil Alizadeh, Mani Gandham, Shimmy Weitzhandler and Yehia Amer
None of us working on it now as there are more important things to do, but I think it will be done near the same time when .NET Core 3.0 comes out or a bit later depending on our spare time. Everyone who wants to contribute and get it earlier is welcome.
FYI I'm looking into this now - something will probably be merged soon. This will provide more or less the same functionality as the JSON.NET plugin - reading and writing - without the need for a plugin, and using the high-perf APIs (at least for reading).
I'm not really familiar yet with System.Json.Text, but does this make Npgsql.Json.NET redundant?
(For example for using other collection-types instead of arrays, see this.
Not so, unfortunately. While System.Text.Json is faster it lacks a lot of features which Newtonsoft.Json has. In .NET 5 it should be mature, but in .NET Core 3 it has no field and constructor support, ability to deserialize elements to an existing collection (aka bind; right now it requires a setter to assign a value).
@weitzhandler and @YohDeadfall, the hope is that System.Text.Json will improve for .NET 5.0 to get rid of the warts it currently has in 3.x. One main advantage of System.Text.Json is that it's part of the framework, so no need for an extra nuget package (on recent .NET Core versions) and the possible dependency issues that can entail. In any case there's no real need to deprecate the Json.NET plugin - some people will likely continue to use that and that's fine.
Activity
huyjack178 commentedon May 27, 2019
How is the progress now?
YohDeadfall commentedon May 27, 2019
None of us working on it now as there are more important things to do, but I think it will be done near the same time when .NET Core 3.0 comes out or a bit later depending on our spare time. Everyone who wants to contribute and get it earlier is welcome.
roji commentedon Aug 12, 2019
FYI I'm looking into this now - something will probably be merged soon. This will provide more or less the same functionality as the JSON.NET plugin - reading and writing - without the need for a plugin, and using the high-perf APIs (at least for reading).
[-]Support for new high-perf JSON APIs[/-][+]Basic support for new high-perf JSON APIs[/+][-]Basic support for new high-perf JSON APIs[/-][+]Basic support for new System.Text.Json[/+]Support for System.Text.Json
weitzhandler commentedon Mar 27, 2020
I'm not really familiar yet with
System.Json.Text, but does this makeNpgsql.Json.NETredundant?(For example for using other collection-types instead of arrays, see this.
YohDeadfall commentedon Mar 27, 2020
Not so, unfortunately. While System.Text.Json is faster it lacks a lot of features which Newtonsoft.Json has. In .NET 5 it should be mature, but in .NET Core 3 it has no field and constructor support, ability to deserialize elements to an existing collection (aka bind; right now it requires a setter to assign a value).
roji commentedon Mar 27, 2020
@weitzhandler and @YohDeadfall, the hope is that System.Text.Json will improve for .NET 5.0 to get rid of the warts it currently has in 3.x. One main advantage of System.Text.Json is that it's part of the framework, so no need for an extra nuget package (on recent .NET Core versions) and the possible dependency issues that can entail. In any case there's no real need to deprecate the Json.NET plugin - some people will likely continue to use that and that's fine.
weitzhandler commentedon Mar 27, 2020
Thank you folks for your kind input!