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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://akkoma/users/witch"
],
"id": "http://pasture-one-actor/activity/cOxI-7BSSr0",
"published": "2025-12-07T10:07:28Z",
"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/5wNtghVf_TM",
"published": "2025-12-07T10:07:28Z",
"content": "text",
"tag": [
{
"type": "Hashtag",
"name": "#test"
}
]
}
}
akkoma
{
"favourited": false,
"edited_at": null,
"card": null,
"reblogged": false,
"visibility": "public",
"pleroma": {
"content": {
"text/plain": "text"
},
"context": "http://pasture-one-actor/object/5wNtghVf_TM",
"conversation_id": 2101285069,
"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
},
"spoiler_text": "",
"akkoma": {
"in_reply_to_apid": null,
"quote_apid": null,
"source": null
},
"uri": "http://pasture-one-actor/object/5wNtghVf_TM",
"pinned": false,
"quote": null,
"account": {
"acct": "actor@pasture-one-actor",
"akkoma": {
"instance": null,
"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-12-07T10:07:21.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": "B10Au9bh87eHgMGfdA",
"last_status_at": "2025-12-07",
"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"
},
"poll": null,
"id": "B10AusNOg7wyX2vO5o",
"text": null,
"mentions": [
{
"acct": "witch",
"id": "B10AlwS7ELx9KRdGjY",
"url": "http://akkoma/users/witch",
"username": "witch"
}
],
"content": "text",
"emoji_reactions": [],
"quote_id": null,
"media_attachments": [],
"favourites_count": 0,
"reblogs_count": 0,
"in_reply_to_account_id": null,
"tags": [
{
"name": "test",
"url": "http://akkoma/tag/test"
}
],
"in_reply_to_id": null,
"application": null,
"sensitive": false,
"bookmarked": false,
"replies_count": 0,
"emojis": [],
"reblog": null,
"url": "http://pasture-one-actor/object/5wNtghVf_TM",
"muted": false,
"created_at": "2025-12-07T10:07:28.000Z",
"language": null
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://akkoma/users/witch"
],
"id": "http://pasture-one-actor/activity/HAzinn4TrfI",
"published": "2025-12-07T10:07:29Z",
"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/9zeRJ1H5ie4",
"published": "2025-12-07T10:07:29Z",
"content": "using as:Hashtag",
"tag": [
{
"type": "as:Hashtag",
"name": "#test"
}
]
}
}
akkoma
{
"favourited": false,
"edited_at": null,
"card": null,
"reblogged": false,
"visibility": "public",
"pleroma": {
"content": {
"text/plain": "using as:Hashtag"
},
"context": "http://pasture-one-actor/object/9zeRJ1H5ie4",
"conversation_id": 1904714193,
"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
},
"spoiler_text": "",
"akkoma": {
"in_reply_to_apid": null,
"quote_apid": null,
"source": null
},
"uri": "http://pasture-one-actor/object/9zeRJ1H5ie4",
"pinned": false,
"quote": null,
"account": {
"acct": "actor@pasture-one-actor",
"akkoma": {
"instance": null,
"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-12-07T10:07:21.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": "B10Au9bh87eHgMGfdA",
"last_status_at": "2025-12-07",
"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"
},
"poll": null,
"id": "B10Auvi4HjGes1cREG",
"text": null,
"mentions": [
{
"acct": "witch",
"id": "B10AlwS7ELx9KRdGjY",
"url": "http://akkoma/users/witch",
"username": "witch"
}
],
"content": "using as:Hashtag",
"emoji_reactions": [],
"quote_id": null,
"media_attachments": [],
"favourites_count": 0,
"reblogs_count": 0,
"in_reply_to_account_id": null,
"tags": [],
"in_reply_to_id": null,
"application": null,
"sensitive": false,
"bookmarked": false,
"replies_count": 0,
"emojis": [],
"reblog": null,
"url": "http://pasture-one-actor/object/9zeRJ1H5ie4",
"muted": false,
"created_at": "2025-12-07T10:07:29.000Z",
"language": null
}
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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://akkoma/users/witch"
],
"id": "http://pasture-one-actor/activity/SSy59zx2KsE",
"published": "2025-12-07T10:07:30Z",
"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/9O4MyOiNWC8",
"published": "2025-12-07T10:07:30Z",
"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": [
"https://www.w3.org/ns/activitystreams#Public",
"http://akkoma/users/witch"
],
"id": "http://pasture-one-actor/activity/Si3WL1gOA_Y",
"published": "2025-12-07T10:07:41Z",
"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/CmjQMMeAB1Q",
"published": "2025-12-07T10:07:41Z",
"@context": "https://www.w3.org/ns/activitystreams",
"content": "Hashtag not in @context \u26a0\ufe0f ",
"tag": [
{
"type": "Hashtag",
"name": "#test"
}
]
}
}
akkoma
{
"favourited": false,
"edited_at": null,
"card": null,
"reblogged": false,
"visibility": "public",
"pleroma": {
"content": {
"text/plain": "Hashtag not in @context \u26a0\ufe0f "
},
"context": "http://pasture-one-actor/object/CmjQMMeAB1Q",
"conversation_id": 1242723017,
"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
},
"spoiler_text": "",
"akkoma": {
"in_reply_to_apid": null,
"quote_apid": null,
"source": null
},
"uri": "http://pasture-one-actor/object/CmjQMMeAB1Q",
"pinned": false,
"quote": null,
"account": {
"acct": "actor@pasture-one-actor",
"akkoma": {
"instance": null,
"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-12-07T10:07:21.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": "B10Au9bh87eHgMGfdA",
"last_status_at": "2025-12-07",
"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"
},
"poll": null,
"id": "B10Aw4pzpinRTAsGwa",
"text": null,
"mentions": [
{
"acct": "witch",
"id": "B10AlwS7ELx9KRdGjY",
"url": "http://akkoma/users/witch",
"username": "witch"
}
],
"content": "Hashtag not in @context \u26a0\ufe0f ",
"emoji_reactions": [],
"quote_id": null,
"media_attachments": [],
"favourites_count": 0,
"reblogs_count": 0,
"in_reply_to_account_id": null,
"tags": [
{
"name": "test",
"url": "http://akkoma/tag/test"
}
],
"in_reply_to_id": null,
"application": null,
"sensitive": false,
"bookmarked": false,
"replies_count": 0,
"emojis": [],
"reblog": null,
"url": "http://pasture-one-actor/object/CmjQMMeAB1Q",
"muted": false,
"created_at": "2025-12-07T10:07:41.000Z",
"language": null
}
Example 5¶
activity
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Create",
"actor": "http://pasture-one-actor/actor",
"to": [
"https://www.w3.org/ns/activitystreams#Public",
"http://akkoma/users/witch"
],
"id": "http://pasture-one-actor/activity/DPmgUhSqtDE",
"published": "2025-12-07T10:07:42Z",
"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/OY_2D31znKw",
"published": "2025-12-07T10:07:42Z",
"@context": "https://www.w3.org/ns/activitystreams",
"content": "Hashtag not in @context; as:Hashtag",
"tag": [
{
"type": "as:Hashtag",
"name": "#test"
}
]
}
}
akkoma
{
"favourited": false,
"edited_at": null,
"card": null,
"reblogged": false,
"visibility": "public",
"pleroma": {
"content": {
"text/plain": "Hashtag not in @context; as:Hashtag"
},
"context": "http://pasture-one-actor/object/OY_2D31znKw",
"conversation_id": 1666282565,
"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
},
"spoiler_text": "",
"akkoma": {
"in_reply_to_apid": null,
"quote_apid": null,
"source": null
},
"uri": "http://pasture-one-actor/object/OY_2D31znKw",
"pinned": false,
"quote": null,
"account": {
"acct": "actor@pasture-one-actor",
"akkoma": {
"instance": null,
"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-12-07T10:07:21.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": "B10Au9bh87eHgMGfdA",
"last_status_at": "2025-12-07",
"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"
},
"poll": null,
"id": "B10Aw8C5M3FRsYESI4",
"text": null,
"mentions": [
{
"acct": "witch",
"id": "B10AlwS7ELx9KRdGjY",
"url": "http://akkoma/users/witch",
"username": "witch"
}
],
"content": "Hashtag not in @context; as:Hashtag",
"emoji_reactions": [],
"quote_id": null,
"media_attachments": [],
"favourites_count": 0,
"reblogs_count": 0,
"in_reply_to_account_id": null,
"tags": [],
"in_reply_to_id": null,
"application": null,
"sensitive": false,
"bookmarked": false,
"replies_count": 0,
"emojis": [],
"reblog": null,
"url": "http://pasture-one-actor/object/OY_2D31znKw",
"muted": false,
"created_at": "2025-12-07T10:07:42.000Z",
"language": null
}