Wesley Moore on Nostr: I may have mentioned it before but I find https://quicktype.io/ super handy for ...
I may have mentioned it before but I find
https://quicktype.io/ super handy for taking some JSON and generating Rust structs to deserialise it with serde. It supports a bunch of other languages too.
Published at
2024-11-24 00:24:37Event JSON
{
"id": "8a300faacf4300c44891f7da5972475cb47feff4ac7f78510193c55c4feae5fc",
"pubkey": "4fbf72f4f23853886f17d785dae040957f149b101524edd02f8d1f73b46d604f",
"created_at": 1732407877,
"kind": 1,
"tags": [
[
"imeta",
"url https://cdn.masto.host/mastodondecentralisedsocial/media_attachments/files/113/535/082/425/963/840/original/61a5cc157ffcce6e.png",
"m image/png",
"dim 2688x2160",
"blurhash U@Mtp+00E1xtX7xaofayS2xaofaybbt7j]f6"
],
[
"proxy",
"https://mastodon.decentralised.social/users/wezm/statuses/113535082660362371",
"activitypub"
]
],
"content": "I may have mentioned it before but I find https://quicktype.io/ super handy for taking some JSON and generating Rust structs to deserialise it with serde. It supports a bunch of other languages too.\n\nhttps://cdn.masto.host/mastodondecentralisedsocial/media_attachments/files/113/535/082/425/963/840/original/61a5cc157ffcce6e.png",
"sig": "c73a7a56ad242747a6a40a76d1fc99e7b05b75d6d1cf026c090b0a73683e13dfcf3877891300ba8dca83afc1ca51996fd0647228217595454704438f64016597"
}