The parser is recursive for skipped values, objects, arrays, sets, tuples, and JsonNode. There is no nesting limit or iterative fallback. Large nesting depth can exhaust the call stack.
import jsony
import std/os
import std/strutils
let depth =
if paramCount() >= 1:
parseInt(paramStr(1))
else:
100000
let payload = repeat("[", depth) & "0" & repeat("]", depth)
discard payload.fromJson()
Found by GPT 5.4.
The parser is recursive for skipped values, objects, arrays, sets, tuples, and
JsonNode. There is no nesting limit or iterative fallback. Large nesting depth can exhaust the call stack.Found by GPT 5.4.