103 json[
"isModule"_L1] = isModule;
104 json[
"isQmlModule"_L1] = isQmlModule;
105 json[
"isGroup"_L1] = isGroup;
106 json[
"noAutoList"_L1] = noAutoList;
108 if (!logicalModuleName.isEmpty())
109 json[
"logicalModuleName"_L1] = logicalModuleName;
110 if (!logicalModuleVersion.isEmpty())
111 json[
"logicalModuleVersion"_L1] = logicalModuleVersion;
112 if (!state.isEmpty())
113 json[
"state"_L1] = state;
115 json[
"qtVariable"_L1] = qtVariable;
116 json[
"cmakePackage"_L1] = cmakePackage;
117 json[
"cmakeComponent"_L1] = cmakeComponent;
118 json[
"cmakeTargetItem"_L1] = cmakeTargetItem;
120 json[
"namespaces"_L1] = memberEntriesToJson(namespaces);
121 json[
"classes"_L1] = memberEntriesToJson(classes);
122 json[
"members"_L1] = memberEntriesToJson(members);
148 if (
const auto t = nodeTypeToJson(nodeType))
149 json[
"nodeType"_L1] = *t;
150 if (
const auto g = genusToJson(genus))
151 json[
"genus"_L1] = *g;
152 json[
"status"_L1] = statusToJson(status);
153 json[
"access"_L1] = accessToJson(access);
156 json[
"title"_L1] = title;
157 json[
"fullTitle"_L1] = fullTitle;
158 json[
"url"_L1] = url;
159 if (!since.isEmpty())
160 json[
"since"_L1] = since;
161 if (!deprecatedSince.isEmpty())
162 json[
"deprecatedSince"_L1] = deprecatedSince;
163 if (!brief.isEmpty())
164 json[
"brief"_L1] = brief;
166 Q_ASSERT(!contentJson.contains(
"blocks"_L1));
167 QJsonObject content = contentJson;
170 for (
const auto &block : body)
171 blocks.append(block.toJson());
172 content[
"blocks"_L1] = blocks;
174 json[
"content"_L1] = content;
177 json[
"hasQmlType"_L1] = qmlTypeInfo.has_value();
179 json[
"qmlType"_L1] = qmlTypeInfo->toJson();
182 json[
"hasCollection"_L1] = collectionInfo.has_value();
184 json[
"collection"_L1] = collectionInfo->toJson();
188 json[
"membersPageUrl"_L1] = membersPageUrl;
193 QJsonArray sectionsArray;
194 for (
const auto §ion : summarySections)
195 sectionsArray.append(section.toJson());
196 json[
"sections"_L1] = sectionsArray;
198 QJsonArray detailSectionsArray;
199 for (
const auto §ion : detailSections)
200 detailSectionsArray.append(section.toJson());
201 json[
"detailSections"_L1] = detailSectionsArray;