Reading JSON file inside F # using Json.NET

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,

+3
source share

Source: https://habr.com/ru/post/1623336/


All Articles