public static bool IsEnumerableOfPrimitives(this JToken property) { bool returnValue = false; var array = property as JArray; if (array != null && array.Count > 0) { returnValue = array[0].IsPrimitive(); } return returnValue; } }