diff options
| author | hodlbod <jstaab@protonmail.com> | 2024-09-03 13:56:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-03 13:56:56 -0700 |
| commit | c02b161d9ed8f2edb7633b467ad2dd25252ed55c (patch) | |
| tree | 0a9198bac9d1976cf0744c30516400ee5cff26aa /39.md | |
| parent | 378dfaa5dbf44bd1f17fd70f8727b636b7c99239 (diff) | |
| parent | c8dc1eadffe0ff894ec39e291c5b28bb18e6db9e (diff) | |
Merge pull request #1477 from kehiy/jsonc
format(all): JSON formatting
Diffstat (limited to '39.md')
| -rw-r--r-- | 39.md | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -13,7 +13,8 @@ Nostr protocol users may have other online identities such as usernames, profile | |||
| 13 | ## `i` tag on a metadata event | 13 | ## `i` tag on a metadata event |
| 14 | 14 | ||
| 15 | A new optional `i` tag is introduced for `kind 0` metadata event defined in [NIP-01](01.md): | 15 | A new optional `i` tag is introduced for `kind 0` metadata event defined in [NIP-01](01.md): |
| 16 | ```json | 16 | |
| 17 | ```jsonc | ||
| 17 | { | 18 | { |
| 18 | "id": <id>, | 19 | "id": <id>, |
| 19 | "pubkey": <pubkey>, | 20 | "pubkey": <pubkey>, |
| @@ -23,7 +24,7 @@ A new optional `i` tag is introduced for `kind 0` metadata event defined in [NIP | |||
| 23 | ["i", "mastodon:bitcoinhackers.org/@semisol", "109775066355589974"] | 24 | ["i", "mastodon:bitcoinhackers.org/@semisol", "109775066355589974"] |
| 24 | ["i", "telegram:1087295469", "nostrdirectory/770"] | 25 | ["i", "telegram:1087295469", "nostrdirectory/770"] |
| 25 | ], | 26 | ], |
| 26 | ... | 27 | // other fields... |
| 27 | } | 28 | } |
| 28 | ``` | 29 | ``` |
| 29 | 30 | ||