What is Nostr?
Alex Gleason /
npub108p…yev6
2023-07-09 19:58:10

Alex Gleason on Nostr: All JSON data is pretty much one of: - Entity: object with an "id" key - Document: ...

All JSON data is pretty much one of:

- Entity: object with an "id" key
- Document: object without an "id" key
- An array of Entity or array of Document

ActivityPub, Nostr, and Mastodon API all use entities for their main data types. The Instance endpoint on Mastodon is an example of a Document.

I acknowledge that JSON-LD exists, but "Entities & Documents" as I call it is the human standard for JSON data. It's just what people do when a consortium doesn't tell them anything.
Author Public Key
npub108pv4cg5ag52nq082kd5leu9ffrn2gdg6g4xdwatn73y36uzplmq9uyev6