Newtonsoft.Json issue
i added the newtonsoft.json package and it's mentionned in the project configuration file but when i call it in the code it gives me this error
28 Replies
dont use it
use System.Text.Json
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
i'm currently learning .NET with the microsoft roadmap i'm not working on a project but thanks for ur advice
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
ah okey
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
do u have any new course
?
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
it's tedious + i need a lot of practical work
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
i'm learning the .NET framework first the serialize thing is only for a practical work from the roadmap i don't even know what does it mean i'm still a newbie
i'll focus on learning the syntax of the language first then i'll work with APIs
Unknown User•2mo ago
Message Not Public
Sign In & Join Server To View
thanks for your time i'll use it in the future
Right, better learn the basics, and mostly everything provided by Microsoft is pretty basic. But later you still can use Newtonsoft.Json. It has advantages in certain and very special scenarios. Like when you want to write a recursive object dumper that can handle cyclic dependencies... System.Text.Json is very more restrictive but that's not bad for beginners.
thanks for ur advice
Uh
If the tutorial mentions Newtonsoft then please just stick to that
Nothing is more annoying than having to deviate off the tutorial because something changes
Just keep in mind about STJ
If the tutorial mentions Newtonsoft, fid a newer tutorial
It's been years, let it go
I really hope you are not learning .NET Framework, since its legacy and should not be used these days. Rather, you should learn modern .NET.
wdym
.NET Framework — goes up to 4.8 — old and Windows only
.NET — starts from 5.0 — new and cross-platform
i'm following the microsoft official course
.NET8.0
You're good, then
The point about not using Newtonsoft stands, though
The name changed, .NET8.0 is simply ".NET", not ".NET Framework"
And Microsoft could really stand to update their tutorials
ah okey
STJ kinda overrated
Since you are new here... Necroing a "finished" thread just to drop a non-helpful and also frankly wrong and outdated opinion is not appreciated. Please don't do this in the future.