Unable to deserialize JSON extracted from file. Get an unhandled exception of type "System.TypeInitializationException" exception that occurred in
let deserializedFiles = JsonConvert.DeserializeObject<Files list>(json1)
The following code:
let foo = new JsonTextReader(new StreamReader(jsonFile))
let json1 = JsonConvert.SerializeObject(foo.Read())
let deserializedFiles = JsonConvert.DeserializeObject<Files list>(json1)
Thanks,
source
share