I am converting some older c# code that uses com.google.gson to a new code base that uses Newtonsoft.
I need to convert a line of code that is using com.google.gson.JsonArray's to Newtonsoft's version.
I've googled this a bunch and cannot find a sample that shows the syntax using Netwonsoft.
Old code:
new JsonPrimitive((string) value)
I'm hoping that I will get something like:
JObject.Primitive(value);