Jaguar Jaguar - 2 months ago 13
JSON Question

how to import JsonConvert in C# application?

I created a C# library project. The project has this line in one class:


I'm getting error saying
the name JsonConvert doesn't exist in the current context
. To fix that I added
to references but no luck :(. How can I solve this error?


JsonConvert is from the namespace Newtonsoft.Json, not System.ServiceModel.Web

Use NuGet to download the package

"Manage NuGet packages" -> Search for "newtonsoft json". -> click "install".