4 ms·
tl;dr: the JSON specification accepts two obscure Unicode codepoints in string literals that the JS specification doesn't. eval() may fail on valid JSON. Workar
by ot 15y ago
tl;dr: the JSON specification accepts two obscure Unicode codepoints in string literals that the JS specification doesn't. eval() may fail on valid JSON. Workaround: escape those codepoints.
Plus sensationalistic title and pedantic introduction.
- arturadib 15y agoHey, thanks for the tl;dr. That was useful. > Plus sensationalistic title and pedantic introduction. This, not so useful (and unkind)... Had the author written merely the tl;dr line above do you think his important observation would have gotten the attention it deserves? The author outlined his thought process to show that his observation was actually based on non-trivial research. While I like tl;dr's, I appreciate intros that put things in context, and I'm more likely to trust observations whose underpinnings are spelled out.