skip to Main Content

Json – SerializationException: The data contract type <TypeName> could not be deserialized because more than one data item <FieldName> was found in the input

Im getting an 'SerializationException' exception when deserializing data's from json file: public static T Deserialize(string FilePath) { using (FileStream FS = new FileStream(FilePath, FileMode.OpenOrCreate)) { DataContractJsonSerializer serializer = new DataContractJsonSerializer(typeof(T)); return (T)serializer.ReadObject(FS) ?? null; } } and this is how…

VIEW QUESTION
Back To Top
Search