QDoc: Omit empty brief from IR::Document JSON output


The brief field is always emitted in JSON output, even when the
document has no brief description. This is inconsistent with other
optional fields that follow an omit-when-empty convention and forces
templates to guard against empty strings.

The brief field is now omitted when empty, matching the convention
used by since, deprecatedSince, and other optional metadata. Templates
already use default() guards for brief access, so this change is
safe for existing template consumers.

Task-number: QTBUG-142470
Change-Id: Ie3b8353b9dc4aba7f07bd6ac0bd2a6ba18bf4e72
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commitcbeca04dea28a5eb82be8b1bb893bd30b60512ad
parent2f3ba42ff810c4d79e8e0ce891dd693a30ad2712
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeMon, 23 Mar 2026 18:43:19 +0100