Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jay 425 posts 652 karma points
    Jan 21, 2022 @ 11:41
    Jay
    0

    Umbraco 9 Newtonsoft.Json

    Quick question, trying to migrate V8 to V9. So I'm on the code upgrade bits and was wondering if Newtonsoft.Json still works in .NET 5?

    Or do we need to convert it into System.Text.Json?

    Thanks

  • Bjarne Fyrstenborg 1284 posts 4038 karma points MVP 8x c-trib
    Jan 21, 2022 @ 12:27
    Bjarne Fyrstenborg
    2

    Hi Jay

    Yes, it does.

    Umbraco still has a dependency on Newtonsoft.Json: https://www.nuget.org/packages/UmbracoCms.Core/

    But you should be able to use System.Text.Json in you own business logic if you prefer. However it still need the Newtonsoft.Json dependency.

    Generally speaking .NET5 System.Text.Json is the new default serializer/deserializer ASP.NET Core, but it doesn't mean Newtonsoft.Json can't be used as well. https://devblogs.microsoft.com/dotnet/whats-next-for-system-text-json/

Please Sign in or register to post replies

Write your reply to:

Draft