Content & social · Fictional sample data
Comment threads JSON Sample
A small discussion thread with nested replies, reactions, optional moderation data, and nullable avatars.
Use this dataset for threaded discussion ui, recursive data handling, empty-array and optional-field tests.
JSON preview
comments.json · 1.2 KB · formatted JSON
{
"postId": "post-2025-014",
"comments": [
{
"id": "comment-501",
"author": {
"id": "user-31",
"name": "Sam Taylor",
"avatarUrl": null
},
"body": "The smaller fixture examples made this much easier to apply.",
"createdAt": "2025-02-21T11:04:32Z",
"edited": false,
"reactions": {
"helpful": 3,
"heart": 1
},
"replies": [
{
"id": "comment-502",
"author": {
"id": "user-08",
"name": "Riley Morgan"
},
"body": "Agreed. Keeping one edge case is useful without making the fixture noisy.",
"createdAt": "2025-02-21T12:18:00Z",
"edited": true,
"reactions": {
"helpful": 1
},
"replies": []
}
]
},
{
"id": "comment-503",
"author": {
"id": "user-44",
"name": "Casey Lane"
},
"body": "Could you add an example with an empty list?",
"createdAt": "2025-02-22T08:00:00Z",
"edited": false,
"reactions": {},
"replies": [],
"moderation": {
"state": "visible",
"reviewedAt": null
}
}
],
"commentCount": 3
}Notable fields
comments[].replies[]- Replies use the same nested shape and can themselves have empty replies.
comments[].moderation- Present only on the second comment to exercise optional fields.
This is fictional sample data created for development and testing. Names, addresses, identifiers, and example-domain URLs are illustrative. It is not sourced from real people or a live API.
If an in-page download is unavailable, download the static JSON file directly.
Try these related samples
- Blog postsPublished and draft posts with author details, tags, timestamps, and editorial metrics.
- User profileA realistic account profile with nested preferences, roles, social links, and optional values.