Replies: 2 comments
-
I don't know particularly where the error should be but you could try using this code: nlohmann::json jsonData = nlohmann::json();
std::string nameS = examinationName->text().toStdString();
jsonData["name"] = nameS;
jsonData["unixTime"] = (unsigned long long) ::time(NULL); |
Beta Was this translation helpful? Give feedback.
0 replies
-
What's your exact error message? This code compiles without errors:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Type of jsonData is number (
jsonData.type_name
)Compiler: MSVC from VS 2022
What is wrong?
Beta Was this translation helpful? Give feedback.
All reactions