Understand the JSON output format
mainAll commands return structured JSON optimized for programmatic use. Key characteristics include:
- Consistent field names and stable ordering.
- Omitted fields instead of
nullvalues. - Pre-joined thread replies.
- Essential data only (no URLs or metadata noise).
ID Formats:
- Reviews:
PRR_... - Threads:
PRRT_... - Comment Nodes:
PRRC_...(available via--include-comment-node-id)
{
"reviews": [
{
"id": "PRR_...",
"state": "CHANGES_REQUESTED",
"author_login": "reviewer",
"comments": [
{
"thread_id": "PRRT_...",
"path": "src/file.go",
"author_login": "reviewer",
"body": "Consider refactoring this",
"created_at": "2024-01-15T10:30:00Z",
"is_resolved": false,
"is_outdated": false,
"thread_comments": [
{
"author_login": "author",
"body": "Good point, will fix",
"created_at": "2024-01-15T11:00:00Z"
}
]
}
]
}
]
}