From 85f3282e46dab548cb1c69e0b19b65cb4140b562 Mon Sep 17 00:00:00 2001 From: Alexander Lopatin Date: Tue, 29 Apr 2025 18:28:46 +0300 Subject: Fix JSON format (#1896) --- 22.md | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to '22.md') diff --git a/22.md b/22.md index 8eff09a..be07e53 100644 --- a/22.md +++ b/22.md @@ -18,9 +18,9 @@ and `p` for the author of the parent item. ```jsonc { - kind: 1111, - content: '', - tags: [ + "kind": 1111, + "content": "", + "tags": [ // root scope: event addresses, event ids, or I-tags. ["", "", "", ""], // the root item kind @@ -64,9 +64,9 @@ A comment on a blog post looks like this: ```jsonc { - kind: 1111, - content: 'Great blog post!', - tags: [ + "kind": 1111, + "content": "Great blog post!", + "tags": [ // top-level comments scope to event addresses or ids ["A", "30023:3c9849383bdea883b0bd16fece1ed36d37e37cdde3ce43b17ea4e9192ec11289:f9347ca7", "wss://example.relay"], // the root kind @@ -91,9 +91,9 @@ A comment on a [NIP-94](94.md) file looks like this: ```jsonc { - kind: 1111, - content: 'Great file!', - tags: [ + "kind": 1111, + "content": "Great file!", + "tags": [ // top-level comments have the same scope and reply to addresses or ids ["E", "768ac8720cdeb59227cf95e98b66560ef03d8bc9a90d721779e76e68fb42f5e6", "wss://example.relay", "3721e07b079525289877c366ccab47112bdff3d1b44758ca333feb2dbbbbe5bb"], // the root kind @@ -115,9 +115,9 @@ A reply to a comment looks like this: ```jsonc { - kind: 1111, - content: 'This is a reply to "Great file!"', - tags: [ + "kind": 1111, + "content": "This is a reply to \"Great file!\"", + "tags": [ // nip-94 file event id ["E", "768ac8720cdeb59227cf95e98b66560ef03d8bc9a90d721779e76e68fb42f5e6", "wss://example.relay", "fd913cd6fa9edb8405750cd02a8bbe16e158b8676c0e69fdc27436cc4a54cc9a"], // the root kind @@ -138,9 +138,9 @@ A comment on a website's url looks like this: ```jsonc { - kind: 1111, - content: 'Nice article!', - tags: [ + "kind": 1111, + "content": "Nice article!", + "tags": [ // referencing the root url ["I", "https://abc.com/articles/1"], // the root "kind": for an url, the kind is its domain @@ -159,11 +159,11 @@ A podcast comment example: ```jsonc { - id: "80c48d992a38f9c445b943a9c9f1010b396676013443765750431a9004bdac05", - pubkey: "252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111", - kind: 1111, - content: "This was a great episode!", - tags: [ + "id": "80c48d992a38f9c445b943a9c9f1010b396676013443765750431a9004bdac05", + "pubkey": "252f10c83610ebca1a059c0bae8255eba2f95be4d1d7bcfa89d7248a82d9f111", + "kind": 1111, + "content": "This was a great episode!", + "tags": [ // podcast episode reference ["I", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", "https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg"], // podcast episode type @@ -181,9 +181,9 @@ A reply to a podcast comment: ```jsonc { - kind: 1111, - content: "I'm replying to the above comment.", - tags: [ + "kind": 1111, + "content": "I'm replying to the above comment.", + "tags": [ // podcast episode reference ["I", "podcast:item:guid:d98d189b-dc7b-45b1-8720-d4b98690f31f", "https://fountain.fm/episode/z1y9TMQRuqXl2awyrQxg"], // podcast episode type -- cgit v1.2.3