this post was submitted on 13 Jan 2025
150 points (96.9% liked)

Fediverse

31086 readers
869 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)

founded 2 years ago
MODERATORS
 

EDIT: on web, it renders like this

you are viewing a single comment's thread
view the rest of the comments
[–] schnurrito@discuss.tchncs.de 1 points 1 month ago (2 children)

Do you know a way to see the ActivityPub JSON for fediverse objects?

[–] BentiGorlich@gehirneimer.de 6 points 1 month ago

you can use https://browser.pub I like it very much for that use case :)

[–] andrew_s@piefed.social 5 points 1 month ago (1 children)

Yes - it's easy to do from a command line. For this post, it would be:

curl --header 'accept: application/activity+json' --location https://lemmy.world/post/24241974 | jq .

it looks like

{  
  "@context": [  
    "https://join-lemmy.org/context.json",  
    "https://www.w3.org/ns/activitystreams"  
  ],  
  "type": "Page",  
  "id": "https://lemmy.world/post/24241974",  
  "attributedTo": "https://lemmy.world/u/amon",  
  "to": [  
    "https://lemmy.world/c/fediverse",  
    "https://www.w3.org/ns/activitystreams#Public"  
  ],  
  "name": "By the way, you can have `Markdown` in Lemmy post titles",  
  "cc": [],  
  "mediaType": "text/html",  
  "attachment": [],  
  "commentsEnabled": true,  
  "sensitive": false,  
  "published": "2025-01-13T20:48:50.824942Z",  
  "language": {  
    "identifier": "en",  
    "name": "English"  
  },  
  "audience": "https://lemmy.world/c/fediverse"  
}   

[–] schnurrito@discuss.tchncs.de 1 points 1 month ago

Thanks, will try that out