Schema: Comment
Schema: Comment Example Markup
The following are examples of markup written in json+ld that include the correct usage for Schema: Comment.
BlogPosting JSON-LD example for a company blog post about the XooTee t-shirt launch. Covers the Blog container via isPartOf, comment and commentCount for reader discussion, interactionStatistic for engagement metrics, detailed author identity with worksFor cross-reference, and how BlogPosting differs from Article and NewsArticle.
DiscussionForumPosting JSON-LD example for a community forum thread. DiscussionForumPosting adds no properties of its own; used for forum posts, Reddit-style threads, and community Q&A.
Comment JSON-LD example for a blog post reply. Covers downvoteCount, upvoteCount, parentItem, and sharedContent (the 4 properties unique to Comment), plus how to structure comment threads with nested replies.
Question JSON-LD example for Q&A, FAQ, and quiz content. Comment subtype carrying acceptedAnswer, suggestedAnswer, answerCount, eduQuestionType. The node Google reads for Q&A rich results and quiz LearningResource pages.
RsvpAction JSON-LD example for an event RSVP in Gmail markup. Carries rsvpResponse (Yes/No/Maybe), additionalNumberOfGuests, and comment — the canonical form for Gmail confirm-your-attendance action cards.
Answer JSON-LD example — Comment subtype with answerExplanation and parentItem. Half of the Q&A rich-result pair with Question.
ReplyAction JSON-LD reference — CommunicateAction subtype with resultComment. Replying to a comment or post.
CommentAction JSON-LD reference — CommunicateAction subtype with resultComment. Posting a top-level comment.