mikedilger on Nostr: I looked at using JSON mapping but ran into trouble with tags which are a "repeated ...
I looked at using JSON mapping but ran into trouble with tags which are a "repeated repeated string" type, which did not parse or compile. So I gave up and just figured 'strings' would work, as we all have libraries for serializing/deserializing to/from JSON.
Published at
2023-02-09 23:52:14Event JSON
{
"id": "724f3af75bcaa785cac94bc0628955b2a53daff9be8953ff3226d617c1d14350",
"pubkey": "ee11a5dff40c19a555f41fe42b48f00e618c91225622ae37b6c2bb67b76c4e49",
"created_at": 1675986734,
"kind": 1,
"tags": [
[
"p",
"89d1ce9164f1f172daaa9c784153178cb1dec7912bf55f5dc07e0f1dabe40e6c"
],
[
"p",
"35d26e4690cbe1a898af61cc3515661eb5fa763b57bd0b42e45099c8b32fd50f"
],
[
"e",
"f43d81278ab0e4e1402132c16ff3485a17d72072393c9572d27c08e5df9770c8",
"wss://nos.lol",
"root"
]
],
"content": "I looked at using JSON mapping but ran into trouble with tags which are a \"repeated repeated string\" type, which did not parse or compile. So I gave up and just figured 'strings' would work, as we all have libraries for serializing/deserializing to/from JSON.",
"sig": "30c16e7263ac2e5c3e860107563830dbd49f32a2224cbb2546407b878b624e0f73a204c0df12e29c51015c00a8a0b5657975212a1a03b2d1d186d2e8ba8e5e5f"
}