JSONPlaceholder · JSON Structure

Jsonplaceholder Comment Structure

A sample comment attached to a post in the JSONPlaceholder dataset.

Type: object Properties: 5 Required: 5
DevelopmentTestingPrototypingFake APIOpen SourceREST

Comment is a JSON Structure definition published by JSONPlaceholder, describing 5 properties, of which 5 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

id postId name email body

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/jsonplaceholder/refs/heads/main/json-structure/jsonplaceholder-comment-structure.json",
  "name": "Comment",
  "description": "A sample comment attached to a post in the JSONPlaceholder dataset.",
  "type": "object",
  "required": ["id", "postId", "name", "email", "body"],
  "properties": {
    "id": { "type": "int32", "description": "Unique comment identifier (1-500)." },
    "postId": { "type": "int32", "description": "Identifier of the post this comment belongs to." },
    "name": { "type": "string", "description": "Display name / subject of the comment." },
    "email": { "type": "string", "description": "Email address of the commenter." },
    "body": { "type": "string", "description": "Comment body text." }
  }
}