@mcc@griotspeak I love undefined. It’s like when Tony Hoare called null his “billion dollar mistake,” the JS designers were like “Wow, so then if we have •two• kind of null, that’s like a billion dollars for free!”
@griotspeak what's horrible about the typeof x == "undefined" is that normally if something is undefined you can't read from it, but typeof is special in that it allows otherwise illegal symbols to follow it
On further investigation, it turns out this is because the Twitter JSON files are not JSON but in fact contain executable JS code which assumes it is running in a browser environment https://www.garrickadenbuie.com/blog/tweet-archive-in-r/
… and Darius's existing parser does, in fact, involve simply calling eval() D: