-
Notifications
You must be signed in to change notification settings - Fork 134
This project vs com.unity.nuget.newtonsoft-jsonΒ #145
Description
(Last updated: 2022-03-03)
Is this package compatible with com.unity.nuget.newtonsoft-json?
No. Sadly not. Reason for this is the combination of:
-
Cannot have multiple .NET assemblies with the same name in a project at the same time.
-
All files in Unity's and my package has the same GUIDs (in their
.dll.meta,.md.meta,.asmdef, etc).
Plans on making it compatible with com.unity.nuget.newtonsoft-json?
There's no plan in making them compatible. There's too many techincal limitations in play here that makes it practically impossible.
There are however plans on resolving this with some Unity devs. I've had a years long discussion with some Unity developers on the topic almost since the dawn of this fork. Fun trivia: the same discussion that com.unity.nuget.newtonsoft-json@v2 was created from to begin with.
Different with this project and com.unity.nuget.newtonsoft-json?
Unity's "official" Newtonsoft.Json package, starting with version 2.0.0-preview.1, is a fork of this repo. They have practically "just" republished my fork as their own.
Just so there's no confusion: It's in their full right to do so. And in fact, one of their super kind developers reached out beforehand just to confirm it would be OK with me, something they didn't have to do, but I really appreciate that they did.
Is com.unity.nuget.newtonsoft-json safe to use?
Edit 2022-03-03: Since late February 2022, starting with v3.0.0 of their package, Unity has now committed to maintaining their fork to keep it up-to-date with the upstream JamesNK/Newtonsoft.Json, providing customer support, as well as publishing their package publicly inside Unity's official UPM registry.
They are just about to make it public, but until then, you can follow my guide on install the official Newtonsoft.Json UPM package over at my wiki.
Latest news on Unity adopting jilleJr/Newtonsoft.Json-for-Unity for real?
Edit 2022-03-03: It is now a reality! My fork can now be considered dead, in favor of Unity's package, starting with v3.0.0: https://docs.unity3d.com/Packages/com.unity.nuget.newtonsoft-json@3.0/manual/index.html
For the long run, Unity is working hard on the .NET 6 adoption and for the long run are looking for using .NET's built in System.Text.Json package instead, leaving end-users free to choose between Newtonsoft.Json or System.Text.Json. Read more: https://forum.unity.com/threads/unity-future-net-development-status.1092205/
What's the future of jilleJr/Newtonsoft.Json-for-Unity?
Edit 2022-03-03: I am officially deprecating this package in favor of Unity's package, as stated above.
I will stop providing:
- Bug fixes
- New features
- New documentation
However, I will still provide:
- Support from questions asked in discussions or issues. However, please refer to the https://forum.unity.com/ or their issue tracker for better support by Unity employees.
- Package downloads for existing versions. No need for me to take down the Cloudsmith package or the branches here on GitHub. They will live on, as long as Cloudsmith and GitHub keeps living on.