contents
1{
2 "id": 123,
3 "postId": 456,
4 "name": "John Doe",
5 "email": "johndoe@example.com",
6 "body": "This is a comment on the blog post.",
7 "created_at": "2022-03-01T12:00:00Z",
8 "updated_at": "2022-03-01T13:00:00Z"
9}
10
The Blog Comment Response JSON is an example JSON response of an API which returns the Blog’s single comment with detailed data.
In this example, the JSON API returns a single comment object with an id
of 123, which is associated with a blog post with a postId
of 456. The comment includes the commenter's name
, email
, and body
text. The created_at
and updated_at
fields represent the date and time the comment was created and last updated, respectively.