Comment JSON Example

A comment record for forums, articles and product reviews.

Example

{
  "id": 501,
  "author": {"id": 42, "name": "Ada"},
  "body": "This JSON example is very useful.",
  "likes": 12,
  "replies": [
    {"id": 502, "body": "Agreed"}
  ]
}

Explanation

Use nested replies sparingly and cap the depth to keep payloads small.