genzboomer@lemmy.zip to Programmer Humor@programming.dev · 4 days agoGot myself a new mug.lemmy.zipexternal-linkmessage-square32fedilinkarrow-up199arrow-down12
arrow-up197arrow-down1external-linkGot myself a new mug.lemmy.zipgenzboomer@lemmy.zip to Programmer Humor@programming.dev · 4 days agomessage-square32fedilink
minus-squareone_old_coder@piefed.sociallinkfedilinkEnglisharrow-up33·4 days agoArray Damon? Vector Damon? I don’t get it.
minus-squaresudoMakeUser@sh.itjust.workslinkfedilinkarrow-up72·4 days agoI would say JSON Bourne but every member within the curlys needs to be a key value pair, so this isn’t JSON.
minus-squaregenzboomer@lemmy.zipOPlinkfedilinkarrow-up11·4 days agoHe was always very forgetful, Mr. Bourne… and well spotted! 😉
minus-squarebamboo@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up9·4 days agoYeah, {} should be [] so it would look something like this: [""]
minus-square9point6@lemmy.worldlinkfedilinkarrow-up18·edit-24 days agoCould double entendre it and do [["😃", 0], [0, "😃"]] For a JSON Bourne Identity
minus-squareloweffortname@lemmy.dbzer0.comlinkfedilinkarrow-up7·edit-24 days agoTechnically an empty array [] is valid JSON…so… Proof:
minus-squaresudoMakeUser@sh.itjust.workslinkfedilinkarrow-up10·4 days ago[“🙂”] and [] and “🙂” are valid, but anything within {} needs to be a key value pair.
minus-squareloweffortname@lemmy.dbzer0.comlinkfedilinkarrow-up12·4 days agoI genuinely saw [] and not {}… Maybe I do need to schedule that eye exam.
minus-squarepython@lemmy.worldlinkfedilinkarrow-up16·4 days agoMe neither, but I bet it’s still valid JS syntax
minus-squaredohpaz42@lemmy.worldlinkfedilinkEnglisharrow-up9·4 days 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-up8·3 days 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.
He was always very forgetful, Mr. Bourne… and well spotted! 😉
Yeah,
{}should be[]so it would look something like this:[""]Could double entendre it and do
[["😃", 0], [0, "😃"]]For a JSON Bourne Identity
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
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.