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"
}
],
"id": "https://fosstodon.org/users/markwalker/statuses/113489103614643341/activity",
"type": "Create",
"actor": "https://fosstodon.org/users/markwalker",
"published": "2024-11-15T21:31:32Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://fosstodon.org/users/markwalker/followers"
],
"object": {
"id": "https://fosstodon.org/users/markwalker/statuses/113489103614643341",
"type": "Note",
"summary": null,
"inReplyTo": "https://fosstodon.org/users/markwalker/statuses/113489063567954500",
"published": "2024-11-15T21:31:32Z",
"url": "https://fosstodon.org/@markwalker/113489103614643341",
"attributedTo": "https://fosstodon.org/users/markwalker",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://fosstodon.org/users/markwalker/followers"
],
"sensitive": false,
"atomUri": "https://fosstodon.org/users/markwalker/statuses/113489103614643341",
"inReplyToAtomUri": "https://fosstodon.org/users/markwalker/statuses/113489063567954500",
"conversation": "tag:fosstodon.org,2024-11-15:objectId=261248956:objectType=Conversation",
"content": "<p>To clarify, I've been working with Django since about 1.4 and never spotted this.</p><p>By including it just now, I've taken a loop over 253 items which collects a value from a queryset outside the loop twice.</p><p>So that was 506 database calls, that are now 506 dictionary lookups. It's always good to do a review of efficiency after you've bodged something together.</p><p>(for those unfamiliar with a bodge - <a href=\"https://www.collinsdictionary.com/dictionary/english/bodge\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://www.</span><span class=\"ellipsis\">collinsdictionary.com/dictiona</span><span class=\"invisible\">ry/english/bodge</span></a>)</p>",
"contentMap": {
"en": "<p>To clarify, I've been working with Django since about 1.4 and never spotted this.</p><p>By including it just now, I've taken a loop over 253 items which collects a value from a queryset outside the loop twice.</p><p>So that was 506 database calls, that are now 506 dictionary lookups. It's always good to do a review of efficiency after you've bodged something together.</p><p>(for those unfamiliar with a bodge - <a href=\"https://www.collinsdictionary.com/dictionary/english/bodge\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://www.</span><span class=\"ellipsis\">collinsdictionary.com/dictiona</span><span class=\"invisible\">ry/english/bodge</span></a>)</p>"
},
"attachment": [],
"tag": [],
"replies": {
"id": "https://fosstodon.org/users/markwalker/statuses/113489103614643341/replies",
"type": "Collection",
"first": {
"type": "CollectionPage",
"next": "https://fosstodon.org/users/markwalker/statuses/113489103614643341/replies?only_other_accounts=true&page=true",
"partOf": "https://fosstodon.org/users/markwalker/statuses/113489103614643341/replies",
"items": []
}
},
"likes": {
"id": "https://fosstodon.org/users/markwalker/statuses/113489103614643341/likes",
"type": "Collection",
"totalItems": 0
},
"shares": {
"id": "https://fosstodon.org/users/markwalker/statuses/113489103614643341/shares",
"type": "Collection",
"totalItems": 0
}
}
}