/// <summary> /// Retrieve content as a Json object. /// </summary> /// <param name="httpContent"> /// HttpContent object to retrieve content from. /// </param> /// <returns> /// Content as a JObject /// </returns> public static JObject GetAsJObject(this HttpContent httpContent) { var jsonString = httpContent.GetAsString(); return(JObject.Parse(jsonString)); }