Closed Yoztastic closed 5 years ago
The exception that is thrown in JsonSerializerInternalReader line 989
JsonSerializerInternalReader
....EnsureType.... catch (Exception ex) { throw JsonSerializationException.Create(reader, "Error converting value {0} to type '{1}'.".FormatWith(CultureInfo.InvariantCulture, MiscellaneousUtils.FormatValueForPrint(value), targetType), ex); }
would it not be more useful to change targetType to targetType.FullName? As things stand it always emits 'System.Type' which is not very informative?
targetType
targetType.FullName
What platform is this on? ToString on Type should return FullName.
The exception that is thrown in
JsonSerializerInternalReader
line 989would it not be more useful to change
targetType
totargetType.FullName
? As things stand it always emits 'System.Type' which is not very informative?