QDoc: Always emit anchorId, synopsis, and typeWord to JSON


The member detail and C++ reference page templates reference anchorId,
synopsis, and typeWord unconditionally. When these fields are empty,
omitting them from the JSON causes Inja to abort on the undefined
variable in no-exceptions mode. This surfaces when building full Qt
documentation where some member extractions run at summary level
rather than detail level.

These fields are now always emitted, even when empty. Templates that
need to conditionally render based on the value can check for empty
strings rather than key existence.

Fixes: QTBUG-145818
Task-number: QTBUG-145769
Change-Id: Ia4b1054eed5b90d738c8b8b2677b3c3188baf6af
Reviewed-by: Topi Reinio <topi.reinio@qt.io>
commit2a2121647c5f3f96a6594b440045c62450a669aa
parent0def9eefbcf9a2519c0d284f8269481df7843d1c
authorPaul Wicking <paul.wicking@qt.io>
committerPaul Wicking <paul.wicking@qt.io>
commit timeWed, 15 Apr 2026 12:54:14 +0000