ben on Nostr: what part? the stdlib encoding/json has a Marshal and Unmarshal function. just add ...
what part? the stdlib encoding/json has a Marshal and Unmarshal function. just add json field tags to your struct fields, or use a map, and you’re good to go!
Published at
2024-06-15 04:57:59Event JSON
{
"id": "3b7f35ea7a41cb6d59e88c48fcd2be855a3a2c8508136978143b0b8afd662a08",
"pubkey": "7bdef7bdebb8721f77927d0e77c66059360fa62371fdf15f3add93923a613229",
"created_at": 1718420279,
"kind": 1,
"tags": [
[
"e",
"2a0011e347b4166009aea71710d3d298908524d5781556ff41bf6b0c23857d9c",
"",
"root"
],
[
"p",
"347a2370900d19b4e4756221594e8bda706ae5c785de09e59e4605f91a03f49c"
]
],
"content": "what part? the stdlib encoding/json has a Marshal and Unmarshal function. just add json field tags to your struct fields, or use a map, and you’re good to go!",
"sig": "4ad3f23cf8ec5f34dabb05267122972c47be8b76678f8cf54a7de6d6bf793c41e16aa528693374c63ba023253d0ef43b68d87b27f6809e43f4c8b1508d68e3f9"
}