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://mastodon.social/users/hugovk/statuses/109330264220459918/activity",
"type": "Create",
"actor": "https://mastodon.social/users/hugovk",
"published": "2022-11-12T10:03:59Z",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://mastodon.social/users/hugovk/followers",
"https://mastodon.nz/users/timsavage"
],
"object": {
"id": "https://mastodon.social/users/hugovk/statuses/109330264220459918",
"type": "Note",
"summary": null,
"inReplyTo": "https://mastodon.nz/users/timsavage/statuses/109329233280058245",
"published": "2022-11-12T10:03:59Z",
"url": "https://mastodon.social/@hugovk/109330264220459918",
"attributedTo": "https://mastodon.social/users/hugovk",
"to": [
"https://www.w3.org/ns/activitystreams#Public"
],
"cc": [
"https://mastodon.social/users/hugovk/followers",
"https://mastodon.nz/users/timsavage"
],
"sensitive": false,
"atomUri": "https://mastodon.social/users/hugovk/statuses/109330264220459918",
"inReplyToAtomUri": "https://mastodon.nz/users/timsavage/statuses/109329233280058245",
"conversation": "tag:mastodon.nz,2022-11-12:objectId=4979800:objectType=Conversation",
"content": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.nz/@timsavage\" class=\"u-url mention\">@<span>timsavage</span></a></span> This is a limitation of expressing certain floats as binary and not unique to <a href=\"https://mastodon.social/tags/Python\" class=\"mention hashtag\" rel=\"tag\">#<span>Python</span></a>.</p><p>"Note: The behavior of round() for floats can be surprising: for example, round(2.675, 2) gives 2.67 instead of the expected 2.68. This is not a bug: it’s a result of the fact that most decimal fractions can’t be represented exactly as a float."</p><p><a href=\"https://docs.python.org/3/library/functions.html?#round\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">docs.python.org/3/library/func</span><span class=\"invisible\">tions.html?#round</span></a> <br /><a href=\"https://docs.python.org/3/tutorial/floatingpoint.html#tut-fp-issues\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">docs.python.org/3/tutorial/flo</span><span class=\"invisible\">atingpoint.html#tut-fp-issues</span></a></p><p>Converting 0.895 to binary gives 0.1110010100, which is 0.89453125 and gets rounded down!</p>",
"contentMap": {
"en": "<p><span class=\"h-card\" translate=\"no\"><a href=\"https://mastodon.nz/@timsavage\" class=\"u-url mention\">@<span>timsavage</span></a></span> This is a limitation of expressing certain floats as binary and not unique to <a href=\"https://mastodon.social/tags/Python\" class=\"mention hashtag\" rel=\"tag\">#<span>Python</span></a>.</p><p>"Note: The behavior of round() for floats can be surprising: for example, round(2.675, 2) gives 2.67 instead of the expected 2.68. This is not a bug: it’s a result of the fact that most decimal fractions can’t be represented exactly as a float."</p><p><a href=\"https://docs.python.org/3/library/functions.html?#round\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">docs.python.org/3/library/func</span><span class=\"invisible\">tions.html?#round</span></a> <br /><a href=\"https://docs.python.org/3/tutorial/floatingpoint.html#tut-fp-issues\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" translate=\"no\"><span class=\"invisible\">https://</span><span class=\"ellipsis\">docs.python.org/3/tutorial/flo</span><span class=\"invisible\">atingpoint.html#tut-fp-issues</span></a></p><p>Converting 0.895 to binary gives 0.1110010100, which is 0.89453125 and gets rounded down!</p>"
},
"attachment": [],
"tag": [
{
"type": "Mention",
"href": "https://mastodon.nz/users/timsavage",
"name": "@timsavage@mastodon.nz"
},
{
"type": "Hashtag",
"href": "https://mastodon.social/tags/python",
"name": "#python"
},
{
"type": "Hashtag",
"href": "https://mastodon.social/tags/round",
"name": "#round"
}
],
"replies": {
"id": "https://mastodon.social/users/hugovk/statuses/109330264220459918/replies",
"type": "Collection",
"first": {
"type": "CollectionPage",
"next": "https://mastodon.social/users/hugovk/statuses/109330264220459918/replies?only_other_accounts=true&page=true",
"partOf": "https://mastodon.social/users/hugovk/statuses/109330264220459918/replies",
"items": []
}
},
"likes": {
"id": "https://mastodon.social/users/hugovk/statuses/109330264220459918/likes",
"type": "Collection",
"totalItems": 0
},
"shares": {
"id": "https://mastodon.social/users/hugovk/statuses/109330264220459918/shares",
"type": "Collection",
"totalItems": 0
}
}
}