Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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
Hi Jay
Yes, it does.
Umbraco still has a dependency on Newtonsoft.Json: https://www.nuget.org/packages/UmbracoCms.Core/
Newtonsoft.Json
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.
System.Text.Json
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/
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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
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 theNewtonsoft.Json
dependency.Generally speaking .NET5
System.Text.Json
is the new default serializer/deserializer ASP.NET Core, but it doesn't meanNewtonsoft.Json
can't be used as well. https://devblogs.microsoft.com/dotnet/whats-next-for-system-text-json/is working on a reply...