public static object ToObject(this HttpContent content) { object contentObject = "Content not human readable."; if (content.IsJson()) { contentObject = ThirdParty .LitJson .JsonMapper .ToObject(AsyncHelper.RunSync(content.ReadAsStringAsync)); } else if (content.IsHumanReadable()) { contentObject = AsyncHelper.RunSync(content.ReadAsStringAsync); } return(contentObject); }