TL;DR Version
I have a object of type JToken (but can also be a string) and I need to convert it into a Type contained in
I was able to convert using below method for my WebAPI:
[HttpPost]
public HttpResponseMessage Post(dynamic item) // Passing parameter as dynamic
{
JArray itemArray = item["Region"]; // You need to add JSON.NET library
JObject obj = itemArray[0] as JObject; // Converting from JArray to JObject
Region objRegion = obj.ToObject(); // Converting to Region object
}