We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 940e319 commit 3017f68Copy full SHA for 3017f68
Examples/example.cpp
@@ -64,5 +64,14 @@ int main(int argc, char *argv[])
64
qDebug() << answer_to_everything;
65
qDebug() << text_everything;
66
67
+ //For reverse application, tagged objects can be filled manually, then can be converted to QJsonObjects
68
+ OuterClass secondObject{};
69
+ secondObject.example_int = 12;
70
+ secondObject.example_sub_class = InnerClass{TaggedJSONString{"12"}, true};
71
+ secondObject.example_arr = TaggedJSONStringArray{{"Manual", "Placement"}};
72
+ const QJsonObject jsonObj = secondObject.toJsonObject();
73
+
74
+ qDebug() << QJsonDocument(jsonObj).toJson();
75
76
return 0;
77
}
0 commit comments