Elektrine lite

← Feed

@julian@fietkau.social

2026-03-26 11:32 UTC

@mczachurski @liaizon That's all expected JSON-LD stuff, I believe. JSON-LD parsers are required to treat a single value as equivalent to an array of length 1 containing the same value, and I think basically any property containing a single value can in theory contain a list of values. In the same vein, parsers are supposed to treat bare object IDs the same as inlined forms of the objects. I've never looked into whether the same goes for links, but it doesn't surprise me if it does.

Replies (1)

  • @julian@fietkau.social 2026-03-26 11:37

    @mczachurski @liaizon Hence all the handwringing and clashing opinions on whether a hypothetical compatibility-breaking ActivityPub 2.0 should get rid of JSON-LD. As you point out, plain JSON parsers have to sort of reinvent JSON-LD canonicalization to be widely compatible. They typically do this not for the general case, but whenever interop bugs pop up, so it never ends. Using a real JSON-LD parser should work in theory, but many platforms also emit canonically broken JSON-LD. 😅

    Open ##1637121