lemon on Nostr: Can I ask a stupid question: Why are tags a list instead of a dictionary? Makes it ...
Can I ask a stupid question:
Why are tags a list instead of a dictionary?
Makes it really annoying to parse through. Right now I have to create a for loop to with an if statement since the data is unordered.
Am I missing something?
Published at
2023-12-29 23:44:21Event JSON
{
"id": "dc697e652a4060a60370066646fea71e5df80870cc5873fbc86fa80ed5a3558a",
"pubkey": "be7358c4fe50148cccafc02ea205d80145e253889aa3958daafa8637047c840e",
"created_at": 1703889861,
"kind": 1,
"tags": [
[
"e",
"6131b37c11111e60bb95b28361247304ad3f7875fc77d06ba63153a431436333"
],
[
"p",
"fa984bd7dbb282f07e16e7ae87b26a2a7b9b90b7246a44771f0cf5ae58018f52"
]
],
"content": "Can I ask a stupid question:\nWhy are tags a list instead of a dictionary?\n\nMakes it really annoying to parse through. Right now I have to create a for loop to with an if statement since the data is unordered.\n\nAm I missing something?",
"sig": "40e4e81162ec66b1ba5154a30ee55951d51fb6188759a21be3848178a8724b64af562dbf5f02ae8f9abadb92ac6b2645590c69089a5e888fa531c4b69e71903f"
}