contents
1{
2 "status": "success",
3 "data": {
4 "blog_id": 123,
5 "comments": [
6 {
7 "id": 1,
8 "commenter_name": "John Doe",
9 "comment_text": "Great article!",
10 "comment_date": "2022-02-14 10:30:00"
11 },
12 {
13 "id": 2,
14 "commenter_name": "Jane Smith",
15 "comment_text": "Thanks for sharing.",
16 "comment_date": "2022-02-15 14:45:00"
17 },
18 {
19 "id": 3,
20 "commenter_name": "Bob Johnson",
21 "comment_text": "I have a question about your post.",
22 "comment_date": "2022-02-15 15:10:00"
23 }
24 ]
25 }
26}
The Blog Comment List Response JSON is an example JSON response from the API that returns a list of comments associated with a single blog.
In this example, the JSON includes an ID for the blog post that the comments are associated with, and an array of comments, each with their own unique ID, name of the commenter, email, the actual comment, and the date and time the comment was posted.