Reputation: 6027
I installed json.net using the NuGet package manager:
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?
Upvotes: 11
Views: 14245
Reputation: 292695
You need to import the namespace containing the JObject
class:
using Newtonsoft.Json.Linq;
Upvotes: 21