Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I use json.net in my class after installing it with NuGet?

I installed json.net using the NuGet package manager:

enter image description here

But now when I actually try to use the thing by doing something like:

JObject message = Jobject.parse(someJson);

I am getting Type or namespace name 'JObject' could not be found.

How do I include it in my solution after NuGet installation?

like image 449
drewwyatt Avatar asked Mar 17 '14 15:03

drewwyatt


1 Answers

You need to import the namespace containing the JObject class:

using Newtonsoft.Json.Linq;
like image 147
Thomas Levesque Avatar answered Sep 27 '22 19:09

Thomas Levesque