genzboomer@lemmy.zip to Programmer Humor@programming.dev · 1 day agoGot myself a new mug.lemmy.zipexternal-linkmessage-square28fedilinkarrow-up184
arrow-up184external-linkGot myself a new mug.lemmy.zipgenzboomer@lemmy.zip to Programmer Humor@programming.dev · 1 day agomessage-square28fedilink
minus-squareone_old_coder@piefed.sociallinkfedilinkEnglisharrow-up31·1 day agoArray Damon? Vector Damon? I don’t get it.
minus-squaresudoMakeUser@sh.itjust.workslinkfedilinkarrow-up65·1 day agoI would say JSON Bourne but every member within the curlys needs to be a key value pair, so this isn’t JSON.
minus-squareloweffortname@lemmy.dbzer0.comlinkfedilinkarrow-up6·edit-219 hours agoTechnically an empty array [] is valid JSON…so… Proof:
minus-squaresudoMakeUser@sh.itjust.workslinkfedilinkarrow-up9·19 hours ago[“🙂”] and [] and “🙂” are valid, but anything within {} needs to be a key value pair.
minus-squareloweffortname@lemmy.dbzer0.comlinkfedilinkarrow-up6·16 hours agoI genuinely saw [] and not {}… Maybe I do need to schedule that eye exam.
minus-squarebamboo@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up8·23 hours agoYeah, {} should be [] so it would look something like this: [""]
minus-square9point6@lemmy.worldlinkfedilinkarrow-up15·edit-222 hours agoCould double entendre it and do [["😃", 0], [0, "😃"]] For a JSON Bourne Identity
minus-squaregenzboomer@lemmy.zipOPlinkfedilinkarrow-up8·1 day agoHe was always very forgetful, Mr. Bourne… and well spotted! 😉
minus-squarepython@lemmy.worldlinkfedilinkarrow-up16·1 day agoMe neither, but I bet it’s still valid JS syntax
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up9·23 hours agoYes. In JavaScript, Objects without explicit keys will use the value as the key. At least that’s how it works in Chrome devtools output. 🤷♂️
minus-squareZoteTheMighty@lemmy.ziplinkfedilinkarrow-up7·14 hours agoThis is insane, but ultimately, FAR from the most insane thing JavaScript has done to me this week, so I’ll let it slide.
Array Damon? Vector Damon? I don’t get it.
I would say JSON Bourne but every member within the curlys needs to be a key value pair, so this isn’t JSON.
Technically an empty array
[]is valid JSON…so…Proof:
[“🙂”] and [] and “🙂” are valid, but anything within {} needs to be a key value pair.
I genuinely saw
[]and not{}…Maybe I do need to schedule that eye exam.
Termux
Jake Weary was better
Yeah,
{}should be[]so it would look something like this:[""]Could double entendre it and do
[["😃", 0], [0, "😃"]]For a JSON Bourne Identity
He was always very forgetful, Mr. Bourne… and well spotted! 😉
Me neither, but I bet it’s still valid JS syntax
Yes. In JavaScript, Objects without explicit keys will use the value as the key. At least that’s how it works in Chrome devtools output. 🤷♂️
This is insane, but ultimately, FAR from the most insane thing JavaScript has done to me this week, so I’ll let it slide.