Unable to find a constructor to use for type A class should either have a default constructor one constructor with arguments or a constructor marked with the JsonConstructor attribute Path line 1 po
This error occurs when the JSON serializer is unable to find a suitable constructor to deserialize the JSON data into an object. The object must have a default constructor (a constructor with no arguments), a constructor with arguments that match the JSON data, or a constructor marked with the JsonConstructor attribute.
To fix this error, ensure that the class being deserialized has a constructor that matches the JSON data being deserialized, or add a default constructor or a constructor marked with the JsonConstructor attribute to the class
原文地址: https://www.cveoy.top/t/topic/ebJr 著作权归作者所有。请勿转载和采集!