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.
- 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.