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.

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

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

Michael @drjeats

@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:

· Web · 0 · 0

@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