/// <summary> /// Converting Json strings to objects /// </summary> /// <param name="json">Json string</param> /// <param name="type">Types converted</param> /// <param name="option">Json Deserialize Option</param> /// <returns>Object</returns> public static object ToObject(string json, Type type, JsonDeserializeOption option = null) { var handler = new JsonDeserializeHandler { Option = option ?? defaultDeserializeOption }; return(Deserialize.DeserializeObjectJump.GetThreadSafetyJumpFunc(json, type, handler)); }
/// <summary> /// Converting Json strings to objects /// </summary> /// <typeparam name="T">Types converted</typeparam> /// <param name="json">Json string</param> /// <param name="option">Json Deserialize Option</param> /// <returns>Object</returns> public static T ToObject <T>(string json, JsonDeserializeOption option = null) { var handler = new JsonDeserializeHandler { Option = option ?? defaultDeserializeOption }; return(Deserialize.ResolveProvider <T> .Convert(json, handler)); }