/// <summary> /// Attempt to deserialize any JSON string into an object. /// </summary> /// <param name="input">The string to deserialize to an object.</param> /// <param name="type">The type to convert to.</param> /// <returns>An Object deserialized from the string.</returns> public static Object FromJSON(this String input, Type type, TypeNameHandling typeNameHandling = TypeNameHandling.None) { return(DDRIT.FromJSON(input, type, typeNameHandling)); }
/// <summary> /// Attempt to deserialize any JSON string into an object. /// </summary> /// <typeparam name="TResult">The type to convert to.</typeparam> /// <param name="input">The string to deserialize to an object.</param> /// <returns>An Object of type T deserialized from the string.</returns> public static TResult FromJSON <TResult>(this String input, TypeNameHandling typeNameHandling = TypeNameHandling.None) { return(DDRIT.FromJSON <TResult>(input, typeNameHandling)); }