Skip to content

Basic support for new System.Text.Json #2306

Description

@roji

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.

Activity

  1. added this to the 4.1 milestone on Jan 29, 2019
  2. huyjack178 commented on May 27, 2019

    @huyjack178

    How is the progress now?

  3. YohDeadfall commented on May 27, 2019

    @YohDeadfall
    Contributor

    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.

  4. modified the milestones: 5.0, on Aug 12, 2019
  5. self-assigned this
    on Aug 12, 2019
  6. roji commented on Aug 12, 2019

    @roji
    MemberAuthor

    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).

  7. modified the milestones: , 4.1 on Aug 14, 2019
  8. changed the title [-]Support for new high-perf JSON APIs[/-] [+]Basic support for new high-perf JSON APIs[/+] on Aug 14, 2019
  9. changed the title [-]Basic support for new high-perf JSON APIs[/-] [+]Basic support for new System.Text.Json[/+] on Aug 14, 2019
  10. added a commit that references this issue on Aug 15, 2019
    c6df4e0
  11. weitzhandler commented on Mar 27, 2020

    @weitzhandler
    Contributor

    Basic support for new System.Text.Json

    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.

  12. YohDeadfall commented on Mar 27, 2020

    @YohDeadfall
    Contributor

    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).

  13. roji commented on Mar 27, 2020

    @roji
    MemberAuthor

    @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.

  14. weitzhandler commented on Mar 27, 2020

    @weitzhandler
    Contributor

    Thank you folks for your kind input!

  15. added theissue type on Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions