#ActivityPub (via Activity Streams 2.0) defines "extension" as additional JSON-LD vocabulary terms: behavior is undefined. Extensions, as defined by AS2, are irrelevant since very few implementations (if any) use JSON-LD processing. And yet, the Fediverse implements many behavioral extensions. Those arise from the developer community outside the scope of ActivityPub and JSON-LD. Selling AP to new developers? Simplify it. Drop JSON-LD. Embrace the community.
@mariusor "Dropped", as in, don't mention JSON-LD if "plain old simple JSON" is sufficient.
@Steve_Bate I don't see how that would be an advantage over the current wording.
And I don't think you really mean that.
There won't be "plain old simple JSON", it will be JSON according to "this one schema" that you now have to write and maintain and be responsible for.
What you're arguing for really, is that you think one way of formalizing a data structure with JSON is superior to another. I'm not convinced yet.
Most of the time "Extension" should really be called "Expansion" .. of whack-a-mole programming and maintenance chores. 😅
Unless the extension is a community maintained open standard, that people stick to, and that defines the expected wire formats and behavior with enough detail and rigour.
> JSON-LD documents and ActivityStreams can be understood as plain old simple JSON
As well as misunderstood. It is feature-complete in that regard. 😆
@mariusor What you think I'm really arguing for is an overgeneralization of what I suggested would be beneficial *specifically for the Fediverse*. For RDF applications and related data structures, JSON-LD is clearly a better choice than plain JSON. Different context. Different tradeoffs.
> If you know what JSON-LD is, you can take advantage of the cool linked data approaches provided by JSON-LD. If you don't, don't worry, JSON-LD documents and ActivityStreams can be understood as plain old simple JSON.
@Steve_Bate how much more does it need to be "dropped" though?
From https://www.w3.org/TR/activitypub/#:~:text=If%20you%20don%27t%2C%20don%27t%20worry%2C
ActivityPub