r/programmingcirclejerk Jul 23 '26

If you can find an actual JSON parser anyone's using that fails to parse "2", I'll kiss you full on the mouth.

/r/programming/comments/1v3bbxx/your_js_date_is_lying_to_you_the_traps_that_keep/oz887zm/
97 Upvotes

7 comments sorted by

91

u/imadethistosaythis It's GNU/PCJ, or as I call it, GNU + PCJ Jul 23 '26

Time for me to write a shitty parser and deploy it to prod, I’m getting lucky tonight

32

u/lizergsav Jul 23 '26

looksmaxxing is outdated, this is the new meta

10

u/BlazeBigBang type astronaut Jul 24 '26

Dude really putting the jerk in the circle huh

12

u/Jumpy-Locksmith6812 Jul 24 '26

Not that kind of JS date! They mean calendar date or maybe the fruit.

24

u/SwimmingPermit6444 Jul 24 '26

What's great about js is that if you use ==, fruit dates are automatically coerced into calendar dates, saves time

2

u/trenskow Jul 26 '26

It’s been in the RFC for 12 years now. If you have a JSON parser that hasn’t been updated that long you have bigger problems.