- 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.
> In computer science, an entity is an object that has an identity, which is independent of the changes of its attributes.
If it has an id field that just isn't called "id", I would still consider it an entity. I would just modify the object to rename the id field before processing it.
@verita84@alex@RealAkoSuminoe Good code is self-documenting (what, you can't understand it? It's not because of my lack of comments, the code itself is the comments, get good noob!"