3 ms·
I have to comment on this line: > Some libraries implement an unsafe, but fast, JSON parse using “eval” for older browsers eval is not fast! In fact it is the
by rpearl 14y ago
I have to comment on this line:
> Some libraries implement an unsafe, but fast, JSON parse using “eval” for older browsers
eval is not fast! In fact it is the opposite of fast. Most JIT optimizations go away in the face of eval()! Do not use it even if you know it's safe. Use JSON.parse instead.
- shod 14y ago"Older browsers" means those that predate native JSON methods. Libraries often use eval() as a fallback.