IngwiePhoenix on Nostr: You mean kind 1's .content being stringified JSON? Yeah - that genuenly sucks. ...
You mean kind 1's .content being stringified JSON? Yeah - that genuenly sucks. Double-escaping is always horrible. xD
But not like you couldn't make it work. If it gets too anoying, why not store the file using mktemp and them pipe it back in?
$ myTemp=$(mktemp)
$ someCommandThatMakesKind1 > $myTemp
$ othercommandthatneedskind1 < $myTemp
$ rm $myTemp
Published at
2025-03-09 12:40:15Event JSON
{
"id": "d5cb6b9a9aeb36d6ad101bc6a3fe6e122df2c1f84c475ac550e60ee6bfe73521",
"pubkey": "5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9",
"created_at": 1741524015,
"kind": 1,
"tags": [
[
"e",
"20315b52c8a504281cc210d6f34315833d3b648af91ef97cb1fbfc859ca6075a",
"wss://theforest.nostr1.com/",
"root"
],
[
"e",
"5674967ba327eaed42bc805f7bdb647ba0f073b8af0f0f43ef4c444daabc9e5f",
"wss://nos.lol/",
"reply",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"p",
"5e336907a3dda5cd58f11d162d8a4c9388f9cfb2f8dc4b469c8151e379c63bc9"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"client",
"noStrudel",
"31990:266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5:1686066542546"
]
],
"content": "You mean kind 1's .content being stringified JSON? Yeah - that genuenly sucks. Double-escaping is always horrible. xD\nBut not like you couldn't make it work. If it gets too anoying, why not store the file using mktemp and them pipe it back in?\n$ myTemp=$(mktemp)\n$ someCommandThatMakesKind1 \u003e $myTemp\n$ othercommandthatneedskind1 \u003c $myTemp\n$ rm $myTemp",
"sig": "f3350da4b09ff62558ed953c5e060697a8988f3ed77bb81ac7130491622b85ec8df59522b4d47627e521e7839b5ac0733f9acd4166da07f6dbf8d9be609e2871"
}