A small tool to view real-world ActivityPub objects as JSON! Enter a URL
or username from Mastodon or a similar service below, and we'll send a
request with
the right
Accept
header
to the server to view the underlying object.
{
"@context": [
"https://www.w3.org/ns/activitystreams",
{
"ostatus": "http://ostatus.org#",
"atomUri": "ostatus:atomUri",
"inReplyToAtomUri": "ostatus:inReplyToAtomUri",
"conversation": "ostatus:conversation",
"sensitive": "as:sensitive",
"toot": "http://joinmastodon.org/ns#",
"votersCount": "toot:votersCount",
"Hashtag": "as:Hashtag"
}
],
"id": "https://fosstodon.org/users/bobulous/statuses/113506350725119956",
"type": "Note",
"summary": null,
"inReplyTo": null,
"published": "2024-11-18T22:37:42Z",
"url": "https://fosstodon.org/@bobulous/113506350725119956",
"attributedTo": "https://fosstodon.org/users/bobulous",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://fosstodon.org/users/bobulous/followers"
],
"sensitive": false,
"atomUri": "https://fosstodon.org/users/bobulous/statuses/113506350725119956",
"inReplyToAtomUri": null,
"conversation": "tag:fosstodon.org,2024-11-18:objectId=262134412:objectType=Conversation",
"content": "<p>Is there some way to have a <a href=\"https://fosstodon.org/tags/Rust\" class=\"mention hashtag\" rel=\"tag\">#<span>Rust</span></a> HashMap find (or create if the key is new) the entry for a given key, then release the reference to that key?</p><p>I called `entry(key)` and held the given Entry, hoping that (lookup now finished) the borrow would be released, but that's not the case.</p><p>I'm trying to avoid heap allocation when grabbing map entries that have already been created. (Obivously heap allocation is needed to create a held key in the first place, but after that it seems wasteful.)</p><p><a href=\"https://fosstodon.org/tags/RustLang\" class=\"mention hashtag\" rel=\"tag\">#<span>RustLang</span></a></p>",
"contentMap": {
"en": "<p>Is there some way to have a <a href=\"https://fosstodon.org/tags/Rust\" class=\"mention hashtag\" rel=\"tag\">#<span>Rust</span></a> HashMap find (or create if the key is new) the entry for a given key, then release the reference to that key?</p><p>I called `entry(key)` and held the given Entry, hoping that (lookup now finished) the borrow would be released, but that's not the case.</p><p>I'm trying to avoid heap allocation when grabbing map entries that have already been created. (Obivously heap allocation is needed to create a held key in the first place, but after that it seems wasteful.)</p><p><a href=\"https://fosstodon.org/tags/RustLang\" class=\"mention hashtag\" rel=\"tag\">#<span>RustLang</span></a></p>"
},
"attachment": [],
"tag": [
{
"type": "Hashtag",
"href": "https://fosstodon.org/tags/rust",
"name": "#rust"
},
{
"type": "Hashtag",
"href": "https://fosstodon.org/tags/rustlang",
"name": "#rustlang"
}
],
"replies": {
"id": "https://fosstodon.org/users/bobulous/statuses/113506350725119956/replies",
"type": "Collection",
"first": {
"type": "CollectionPage",
"next": "https://fosstodon.org/users/bobulous/statuses/113506350725119956/replies?only_other_accounts=true&page=true",
"partOf": "https://fosstodon.org/users/bobulous/statuses/113506350725119956/replies",
"items": []
}
},
"likes": {
"id": "https://fosstodon.org/users/bobulous/statuses/113506350725119956/likes",
"type": "Collection",
"totalItems": 0
},
"shares": {
"id": "https://fosstodon.org/users/bobulous/statuses/113506350725119956/shares",
"type": "Collection",
"totalItems": 2
}
}