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/76aof5HYUfo",
"published": "2025-08-30T18:34:58Z",
"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/baWDExHuOZA",
"published": "2025-08-30T18:34:58Z",
"content": "text",
"tag": {
"type": "Hashtag",
"name": "#test"
}
}
}
akkoma
{
"reblogged": false,
"text": null,
"pleroma": {
"content": {
"text/plain": "text"
},
"context": "http://pasture-one-actor/object/baWDExHuOZA",
"conversation_id": 1312798715,
"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,
"uri": "http://pasture-one-actor/object/baWDExHuOZA",
"edited_at": null,
"quote": null,
"favourited": false,
"pinned": false,
"emojis": [],
"id": "AxhhLD7dlwvLUB6v2W",
"mentions": [
{
"acct": "witch",
"id": "AxhhB3LXU21xnsVgmm",
"url": "http://akkoma/users/witch",
"username": "witch"
}
],
"content": "text",
"akkoma": {
"source": null
},
"spoiler_text": "",
"media_attachments": [],
"url": "http://pasture-one-actor/object/baWDExHuOZA",
"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-08-30T18:34:49.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": "AxhhKJtD7thYBUw7Pc",
"last_status_at": "2025-08-30",
"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-08-30T18:34:58.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/WdIbP1xWZak",
"published": "2025-08-30T18:34: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/8e5_oVcTaww",
"published": "2025-08-30T18:34:59Z",
"content": "using as:Hashtag",
"tag": {
"type": "as:Hashtag",
"name": "#test"
}
}
}
akkoma
{
"reblogged": false,
"text": null,
"pleroma": {
"content": {
"text/plain": "using as:Hashtag"
},
"context": "http://pasture-one-actor/object/8e5_oVcTaww",
"conversation_id": 724985400,
"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,
"uri": "http://pasture-one-actor/object/8e5_oVcTaww",
"edited_at": null,
"quote": null,
"favourited": false,
"pinned": false,
"emojis": [],
"id": "AxhhLHDSYFxIBNrcfI",
"mentions": [
{
"acct": "witch",
"id": "AxhhB3LXU21xnsVgmm",
"url": "http://akkoma/users/witch",
"username": "witch"
}
],
"content": "using as:Hashtag",
"akkoma": {
"source": null
},
"spoiler_text": "",
"media_attachments": [],
"url": "http://pasture-one-actor/object/8e5_oVcTaww",
"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-08-30T18:34:49.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": "AxhhKJtD7thYBUw7Pc",
"last_status_at": "2025-08-30",
"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-08-30T18:34:59.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/dy9bgsc0VXU",
"published": "2025-08-30T18:35:00Z",
"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/qcExReF5mIk",
"published": "2025-08-30T18:35:00Z",
"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/uCZoJwFR8_c",
"published": "2025-08-30T18:35:12Z",
"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/1fTTl9Na8KY",
"published": "2025-08-30T18:35:12Z",
"@context": "https://www.w3.org/ns/activitystreams",
"content": "Hashtag not in @context \u26a0\ufe0f ",
"tag": {
"type": "Hashtag",
"name": "#test"
}
}
}
akkoma
{
"reblogged": false,
"text": null,
"pleroma": {
"content": {
"text/plain": "Hashtag not in @context \u26a0\ufe0f "
},
"context": "http://pasture-one-actor/object/1fTTl9Na8KY",
"conversation_id": 1469599540,
"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,
"uri": "http://pasture-one-actor/object/1fTTl9Na8KY",
"edited_at": null,
"quote": null,
"favourited": false,
"pinned": false,
"emojis": [],
"id": "AxhhMRLmMHOJu2JHd2",
"mentions": [
{
"acct": "witch",
"id": "AxhhB3LXU21xnsVgmm",
"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/1fTTl9Na8KY",
"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-08-30T18:34:49.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": "AxhhKJtD7thYBUw7Pc",
"last_status_at": "2025-08-30",
"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-08-30T18:35:12.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/IEnadKRAiTs",
"published": "2025-08-30T18:35:12Z",
"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/B7lg4yovyh8",
"published": "2025-08-30T18:35:12Z",
"@context": "https://www.w3.org/ns/activitystreams",
"content": "Hashtag not in @context; as:Hashtag",
"tag": {
"type": "as:Hashtag",
"name": "#test"
}
}
}
akkoma
{
"reblogged": false,
"text": null,
"pleroma": {
"content": {
"text/plain": "Hashtag not in @context; as:Hashtag"
},
"context": "http://pasture-one-actor/object/B7lg4yovyh8",
"conversation_id": 594322834,
"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,
"uri": "http://pasture-one-actor/object/B7lg4yovyh8",
"edited_at": null,
"quote": null,
"favourited": false,
"pinned": false,
"emojis": [],
"id": "AxhhMVMdR2S8Lqk1WC",
"mentions": [
{
"acct": "witch",
"id": "AxhhB3LXU21xnsVgmm",
"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/B7lg4yovyh8",
"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-08-30T18:34:49.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": "AxhhKJtD7thYBUw7Pc",
"last_status_at": "2025-08-30",
"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-08-30T18:35:12.000Z",
"muted": false,
"replies_count": 0
}