CodyIT@programming.dev to Programmer Humor@programming.devEnglish · 1 day agoEveryone's asking, 'Who's Json?', but nobody's asking, 'How's Json?'programming.devimagemessage-square102linkfedilinkarrow-up1893arrow-down120
arrow-up1873arrow-down1imageEveryone's asking, 'Who's Json?', but nobody's asking, 'How's Json?'programming.devCodyIT@programming.dev to Programmer Humor@programming.devEnglish · 1 day agomessage-square102linkfedilink
minus-squareheartSagan5@lemmy.ziplinkfedilinkarrow-up15·20 hours agocat = dict(name=‘Garfield’, color=‘orange’) str(cat) Can I have that job?
minus-square_stranger_@lemmy.worldlinkfedilinkarrow-up5·20 hours agoI would have accepted this answer. I was hoping for json.dumps, but that’ll work.
minus-squaremel ♀@jlai.lulinkfedilinkarrow-up1·5 hours agoI think json.dumps would not work if there is a datetime in the dict, right?
cat = dict(name=‘Garfield’, color=‘orange’) str(cat)Can I have that job?
I would have accepted this answer.
I was hoping for json.dumps, but that’ll work.
I think json.dumps would not work if there is a datetime in the dict, right?