internal static object Deserialize(JSerializer serializer, string input, Type type, int depthLimit) { if (input == null) { throw new ArgumentNullException("input"); } if (input.Length > serializer.MaxJsonLength) { throw new ArgumentException(AtlasWeb.JSON_MaxJsonLengthExceeded, "input"); } var o = JObjectDeserializer.BasicDeserialize(input, depthLimit, serializer); return(JObjectConverter.ConvertObjectToType(o, type, serializer)); }