JsonValue parses JSON uses a suite of mutually recursive functions but the recursive calls are not in tail position so deep JSON values cause a stack overflow.
For example:
String.replicate 50000 "[" + String.replicate 50000 "]"
|> FSharp.Data.JsonValue.Parse
causes a stack overflow on my machine.
JsonValueparses JSON uses a suite of mutually recursive functions but the recursive calls are not in tail position so deep JSON values cause a stack overflow.For example:
causes a stack overflow on my machine.