I have a a JObject and I would like to set a property from a strongly typed object on it.
JObject["ProductionVersion"] = new ProductionVersion();
In order to do this, ProductVersion needs to be converted to a JToken. How can I do this without having to serialize and deserialize the object as a JObject?
JObject["ProductVersion"] = JsonConvert.DeserializeObject<JObject>(JsonConvert.SerializeObject(message.ProductVersion))