Hashtags and JSON-LD¶
The examples here are various variations of creating the Hashtag element in the tag list. These variations can be useful in understanding how strict an application sees JSON-LD.
Hashtags are a good illustration of JSON-LD parsing as Hashtag is not part of the ActivityStreams vocabulary.
All examples except the first are questionable, and probably should not
be used when publishing to the Fediverse. The examples marked with
⚠️ are expected to fail with a JSON-LD parser. The examples using
as:Hashtag
are expected to fail with a JSON only parser.
Examples¶
Example 1¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://akkoma/users/witch",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/S0yFlOTr6wM",
"published": "2025-09-01T07:17:46Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://akkoma/users/witch"
],
"id": "http://pasture-one-actor/object/XrLxZFIKtMk",
"published": "2025-09-01T07:17:46Z",
"content": "text",
"tag": {
"type": "Hashtag",
"name": "#test"
}
}
}
akkoma
{
"reblogged": false,
"pleroma": {
"content": {
"text/plain": "text"
},
"context": "http://pasture-one-actor/object/XrLxZFIKtMk",
"conversation_id": 1088450559,
"direct_conversation_id": null,
"emoji_reactions": [],
"expires_at": null,
"in_reply_to_account_acct": null,
"local": false,
"parent_visible": false,
"pinned_at": null,
"spoiler_text": {
"text/plain": ""
},
"thread_muted": false
},
"in_reply_to_account_id": null,
"text": null,
"uri": "http://pasture-one-actor/object/XrLxZFIKtMk",
"edited_at": null,
"quote": null,
"favourited": false,
"pinned": false,
"emojis": [],
"id": "AxkrvkUL3uZVe80v1U",
"mentions": [
{
"acct": "witch",
"id": "AxkrmyXBUaUVaAnxVw",
"url": "http://akkoma/users/witch",
"username": "witch"
}
],
"content": "text",
"akkoma": {
"source": null
},
"spoiler_text": "",
"media_attachments": [],
"url": "http://pasture-one-actor/object/XrLxZFIKtMk",
"reblogs_count": 0,
"visibility": "public",
"bookmarked": false,
"card": null,
"favourites_count": 0,
"in_reply_to_id": null,
"quote_id": null,
"poll": null,
"emoji_reactions": [],
"application": null,
"tags": [
{
"name": "test",
"url": "http://akkoma/tag/test"
}
],
"sensitive": false,
"account": {
"acct": "actor@pasture-one-actor",
"akkoma": {
"instance": {
"favicon": null,
"name": "pasture-one-actor",
"nodeinfo": {}
},
"permit_followback": false,
"status_ttl_days": null
},
"avatar": "http://akkoma/images/avi.png",
"avatar_static": "http://akkoma/images/avi.png",
"bot": false,
"created_at": "2025-09-01T07:17:36.000Z",
"display_name": "Test Actor",
"emojis": [],
"fields": [],
"followers_count": 0,
"following_count": 0,
"fqn": "actor@pasture-one-actor",
"header": "http://akkoma/images/banner.png",
"header_static": "http://akkoma/images/banner.png",
"id": "AxkrutLIemqkokNS4m",
"last_status_at": "2025-09-01",
"locked": false,
"note": "",
"pleroma": {
"also_known_as": [],
"ap_id": "http://pasture-one-actor/actor",
"background_image": null,
"favicon": null,
"hide_favorites": true,
"hide_followers": false,
"hide_followers_count": false,
"hide_follows": false,
"hide_follows_count": false,
"is_admin": false,
"is_confirmed": true,
"is_moderator": false,
"is_suggested": false,
"relationship": {},
"skip_thread_containment": false,
"tags": []
},
"source": {
"fields": [],
"note": "",
"pleroma": {
"actor_type": "Person",
"discoverable": false
},
"sensitive": false
},
"statuses_count": 14,
"url": "http://pasture-one-actor/actor",
"username": "actor"
},
"reblog": null,
"language": null,
"created_at": "2025-09-01T07:17:46.000Z",
"muted": false,
"replies_count": 0
}
Example 2¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://akkoma/users/witch",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/pheyB_UmAUk",
"published": "2025-09-01T07:17:46Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://akkoma/users/witch"
],
"id": "http://pasture-one-actor/object/C6b9n7jC_DY",
"published": "2025-09-01T07:17:46Z",
"content": "using as:Hashtag",
"tag": {
"type": "as:Hashtag",
"name": "#test"
}
}
}
akkoma
{
"reblogged": false,
"pleroma": {
"content": {
"text/plain": "using as:Hashtag"
},
"context": "http://pasture-one-actor/object/C6b9n7jC_DY",
"conversation_id": 132673854,
"direct_conversation_id": null,
"emoji_reactions": [],
"expires_at": null,
"in_reply_to_account_acct": null,
"local": false,
"parent_visible": false,
"pinned_at": null,
"spoiler_text": {
"text/plain": ""
},
"thread_muted": false
},
"in_reply_to_account_id": null,
"text": null,
"uri": "http://pasture-one-actor/object/C6b9n7jC_DY",
"edited_at": null,
"quote": null,
"favourited": false,
"pinned": false,
"emojis": [],
"id": "AxkrvoWG4iU49EwVZQ",
"mentions": [
{
"acct": "witch",
"id": "AxkrmyXBUaUVaAnxVw",
"url": "http://akkoma/users/witch",
"username": "witch"
}
],
"content": "using as:Hashtag",
"akkoma": {
"source": null
},
"spoiler_text": "",
"media_attachments": [],
"url": "http://pasture-one-actor/object/C6b9n7jC_DY",
"reblogs_count": 0,
"visibility": "public",
"bookmarked": false,
"card": null,
"favourites_count": 0,
"in_reply_to_id": null,
"quote_id": null,
"poll": null,
"emoji_reactions": [],
"application": null,
"tags": [],
"sensitive": false,
"account": {
"acct": "actor@pasture-one-actor",
"akkoma": {
"instance": {
"favicon": null,
"name": "pasture-one-actor",
"nodeinfo": {}
},
"permit_followback": false,
"status_ttl_days": null
},
"avatar": "http://akkoma/images/avi.png",
"avatar_static": "http://akkoma/images/avi.png",
"bot": false,
"created_at": "2025-09-01T07:17:36.000Z",
"display_name": "Test Actor",
"emojis": [],
"fields": [],
"followers_count": 0,
"following_count": 0,
"fqn": "actor@pasture-one-actor",
"header": "http://akkoma/images/banner.png",
"header_static": "http://akkoma/images/banner.png",
"id": "AxkrutLIemqkokNS4m",
"last_status_at": "2025-09-01",
"locked": false,
"note": "",
"pleroma": {
"also_known_as": [],
"ap_id": "http://pasture-one-actor/actor",
"background_image": null,
"favicon": null,
"hide_favorites": true,
"hide_followers": false,
"hide_followers_count": false,
"hide_follows": false,
"hide_follows_count": false,
"is_admin": false,
"is_confirmed": true,
"is_moderator": false,
"is_suggested": false,
"relationship": {},
"skip_thread_containment": false,
"tags": []
},
"source": {
"fields": [],
"note": "",
"pleroma": {
"actor_type": "Person",
"discoverable": false
},
"sensitive": false
},
"statuses_count": 15,
"url": "http://pasture-one-actor/actor",
"username": "actor"
},
"reblog": null,
"language": null,
"created_at": "2025-09-01T07:17:46.000Z",
"muted": false,
"replies_count": 0
}
Example 3¶
activity
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"Hashtag": "as:Hashtag",
"sensitive": "as:sensitive"
}
],
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://akkoma/users/witch",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/4ytXGFxTknY",
"published": "2025-09-01T07:17:47Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://akkoma/users/witch"
],
"id": "http://pasture-one-actor/object/4d3ALMi3-6g",
"published": "2025-09-01T07:17:47Z",
"content": "no type \u26a0\ufe0f ",
"tag": {
"name": "#test"
}
}
}
no result
Example 4¶
activity
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://akkoma/users/witch",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/gVAqJmymfPQ",
"published": "2025-09-01T07:17:59Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://akkoma/users/witch"
],
"id": "http://pasture-one-actor/object/ZkieLKpEfy4",
"published": "2025-09-01T07:17:59Z",
"@context": "https://www.w3.org/ns/activitystreams",
"content": "Hashtag not in @context \u26a0\ufe0f ",
"tag": {
"type": "Hashtag",
"name": "#test"
}
}
}
akkoma
{
"reblogged": false,
"pleroma": {
"content": {
"text/plain": "Hashtag not in @context \u26a0\ufe0f "
},
"context": "http://pasture-one-actor/object/ZkieLKpEfy4",
"conversation_id": 1204633704,
"direct_conversation_id": null,
"emoji_reactions": [],
"expires_at": null,
"in_reply_to_account_acct": null,
"local": false,
"parent_visible": false,
"pinned_at": null,
"spoiler_text": {
"text/plain": ""
},
"thread_muted": false
},
"in_reply_to_account_id": null,
"text": null,
"uri": "http://pasture-one-actor/object/ZkieLKpEfy4",
"edited_at": null,
"quote": null,
"favourited": false,
"pinned": false,
"emojis": [],
"id": "AxkrwxJyppqjjikCn2",
"mentions": [
{
"acct": "witch",
"id": "AxkrmyXBUaUVaAnxVw",
"url": "http://akkoma/users/witch",
"username": "witch"
}
],
"content": "Hashtag not in @context \u26a0\ufe0f ",
"akkoma": {
"source": null
},
"spoiler_text": "",
"media_attachments": [],
"url": "http://pasture-one-actor/object/ZkieLKpEfy4",
"reblogs_count": 0,
"visibility": "public",
"bookmarked": false,
"card": null,
"favourites_count": 0,
"in_reply_to_id": null,
"quote_id": null,
"poll": null,
"emoji_reactions": [],
"application": null,
"tags": [
{
"name": "test",
"url": "http://akkoma/tag/test"
}
],
"sensitive": false,
"account": {
"acct": "actor@pasture-one-actor",
"akkoma": {
"instance": {
"favicon": null,
"name": "pasture-one-actor",
"nodeinfo": {}
},
"permit_followback": false,
"status_ttl_days": null
},
"avatar": "http://akkoma/images/avi.png",
"avatar_static": "http://akkoma/images/avi.png",
"bot": false,
"created_at": "2025-09-01T07:17:36.000Z",
"display_name": "Test Actor",
"emojis": [],
"fields": [],
"followers_count": 0,
"following_count": 0,
"fqn": "actor@pasture-one-actor",
"header": "http://akkoma/images/banner.png",
"header_static": "http://akkoma/images/banner.png",
"id": "AxkrutLIemqkokNS4m",
"last_status_at": "2025-09-01",
"locked": false,
"note": "",
"pleroma": {
"also_known_as": [],
"ap_id": "http://pasture-one-actor/actor",
"background_image": null,
"favicon": null,
"hide_favorites": true,
"hide_followers": false,
"hide_followers_count": false,
"hide_follows": false,
"hide_follows_count": false,
"is_admin": false,
"is_confirmed": true,
"is_moderator": false,
"is_suggested": false,
"relationship": {},
"skip_thread_containment": false,
"tags": []
},
"source": {
"fields": [],
"note": "",
"pleroma": {
"actor_type": "Person",
"discoverable": false
},
"sensitive": false
},
"statuses_count": 16,
"url": "http://pasture-one-actor/actor",
"username": "actor"
},
"reblog": null,
"language": null,
"created_at": "2025-09-01T07:17:59.000Z",
"muted": false,
"replies_count": 0
}
Example 5¶
activity
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"http://akkoma/users/witch",
"https://www.w3.org/ns/activitystreams#Public"
],
"id": "http://pasture-one-actor/activity/iX9IZY-tD1o",
"published": "2025-09-01T07:17:59Z",
"object": {
"type": "Note",
"attributedTo": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://akkoma/users/witch"
],
"id": "http://pasture-one-actor/object/P2WdovE_IlU",
"published": "2025-09-01T07:17:59Z",
"@context": "https://www.w3.org/ns/activitystreams",
"content": "Hashtag not in @context; as:Hashtag",
"tag": {
"type": "as:Hashtag",
"name": "#test"
}
}
}
akkoma
{
"reblogged": false,
"pleroma": {
"content": {
"text/plain": "Hashtag not in @context; as:Hashtag"
},
"context": "http://pasture-one-actor/object/P2WdovE_IlU",
"conversation_id": 1694478280,
"direct_conversation_id": null,
"emoji_reactions": [],
"expires_at": null,
"in_reply_to_account_acct": null,
"local": false,
"parent_visible": false,
"pinned_at": null,
"spoiler_text": {
"text/plain": ""
},
"thread_muted": false
},
"in_reply_to_account_id": null,
"text": null,
"uri": "http://pasture-one-actor/object/P2WdovE_IlU",
"edited_at": null,
"quote": null,
"favourited": false,
"pinned": false,
"emojis": [],
"id": "Axkrx1CgOuOBmFMQyG",
"mentions": [
{
"acct": "witch",
"id": "AxkrmyXBUaUVaAnxVw",
"url": "http://akkoma/users/witch",
"username": "witch"
}
],
"content": "Hashtag not in @context; as:Hashtag",
"akkoma": {
"source": null
},
"spoiler_text": "",
"media_attachments": [],
"url": "http://pasture-one-actor/object/P2WdovE_IlU",
"reblogs_count": 0,
"visibility": "public",
"bookmarked": false,
"card": null,
"favourites_count": 0,
"in_reply_to_id": null,
"quote_id": null,
"poll": null,
"emoji_reactions": [],
"application": null,
"tags": [],
"sensitive": false,
"account": {
"acct": "actor@pasture-one-actor",
"akkoma": {
"instance": {
"favicon": null,
"name": "pasture-one-actor",
"nodeinfo": {}
},
"permit_followback": false,
"status_ttl_days": null
},
"avatar": "http://akkoma/images/avi.png",
"avatar_static": "http://akkoma/images/avi.png",
"bot": false,
"created_at": "2025-09-01T07:17:36.000Z",
"display_name": "Test Actor",
"emojis": [],
"fields": [],
"followers_count": 0,
"following_count": 0,
"fqn": "actor@pasture-one-actor",
"header": "http://akkoma/images/banner.png",
"header_static": "http://akkoma/images/banner.png",
"id": "AxkrutLIemqkokNS4m",
"last_status_at": "2025-09-01",
"locked": false,
"note": "",
"pleroma": {
"also_known_as": [],
"ap_id": "http://pasture-one-actor/actor",
"background_image": null,
"favicon": null,
"hide_favorites": true,
"hide_followers": false,
"hide_followers_count": false,
"hide_follows": false,
"hide_follows_count": false,
"is_admin": false,
"is_confirmed": true,
"is_moderator": false,
"is_suggested": false,
"relationship": {},
"skip_thread_containment": false,
"tags": []
},
"source": {
"fields": [],
"note": "",
"pleroma": {
"actor_type": "Person",
"discoverable": false
},
"sensitive": false
},
"statuses_count": 17,
"url": "http://pasture-one-actor/actor",
"username": "actor"
},
"reblog": null,
"language": null,
"created_at": "2025-09-01T07:17:59.000Z",
"muted": false,
"replies_count": 0
}