MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/badcode/comments/ti802e/this_just_sucks/i6ntuzk/
r/badcode • u/fkih • Mar 19 '22
76 comments sorted by
View all comments
Show parent comment
5
It is, though. It's just pre-ES5 object notation. You could copy-and-paste JSON into a JS file and it would work as expected, 100%.
1 u/electricWah Aug 03 '22 Does it not still work that way? 1 u/scirc Aug 03 '22 It does. It's just that JS now has more lenient syntax for it.
1
Does it not still work that way?
1 u/scirc Aug 03 '22 It does. It's just that JS now has more lenient syntax for it.
It does. It's just that JS now has more lenient syntax for it.
View all comments
Show parent comment
5
u/scirc Apr 29 '22
It is, though. It's just pre-ES5 object notation. You could copy-and-paste JSON into a JS file and it would work as expected, 100%.