dataElementsList : TypesAndData.DataElement list
- A list of 50,000 entries (in fact, a lot more, but let them start small). I am trying to serialize a JSON file:
let ser = Json.DataContractJsonSerializer(typeof<TypesAndData.DataElement list>) use ofs = File.OpenWrite(fileName) let result = ser.WriteObject(ofs, dataElementsList)
and I get the notorious StackOverflowException. to be precise:
An unhandled exception of type 'System.StackOverflowException' occurred in FSharp.Core.dll
any advice?
source share