Closed MadsFoged closed 4 years ago
Instead of
JsonSettings.Converters.Add(new UnitsNetJsonConverter());
try
JsonSettings.Converters.Add(new UnitsNetIQuantityJsonConverter());
There is also UnitsNetIComparableJsonConverter()
if you need to support deserializing props/fields of type IComparable
.
I updated the readme with an example: https://github.com/angularsen/UnitsNet/blob/master/README.md#serialization
The way I did it before was:
Can you help me explain how to do it the new way?