Michael is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Michael @drjeats

Does JSON.parse in the browser max out around 500-deep nested arrays? pastebin.com/nMiv867M

· Web · 0 · 2

(note: this is not actual data don't freak out)

@drjeats Guessing—there probably is a recursion limit, but I'd expect it to be higher?

@tjvr right? was just playing around with estimating number of json tokens in string, so I went to test that out at random and whoops :upside_down:

@drjeats wait what, why did you want to estimate that?

@tjvr I'm trying out this non-allocating json parsing lib: github.com/zserge/jsmn

although you can do 1 pass to count and a 2nd to extract tokens, it satisfies the irrational parts of my programmer brain to preallocate slightly more than enough