What is Nostr?
julian /
npub16lu…09mm
2024-11-13 18:29:56

julian on Nostr: Let's say for some contrived (but very real) reason, I want to add { "toot": ...

Let's say for some contrived (but very real) reason, I want to add { "toot": "http://joinmastodon.org/ns#";, "Emoji": "toot:Emoji" } to @context, but another member of @context might be { "toot": "http://joinmastodon.org/ns#";, "focalPoint": ... }
Would it be acceptable if I just pushed my object to the end and assumed that JSON-LD parsers would correctly reduce it down to:
{
"toot": "http://joinmastodon.org/ns#";,
"Emoji": "toot:Emoji",
"focalPoint": ...
}

... or should I be adding in logic to detect the existing member defining toot and merge the Emoji property in?
Author Public Key
npub16lufy7a3rplgl0xsea9ga22d968ynrk0egajcnec8y4x4nzed8tsfz09mm