You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ammarfaizi2@CraynerCenter:~/project/now/bot-s6$ g++ test.cpp -o test
ammarfaizi2@CraynerCenter:~/project/now/bot-s6$ ./test
Int: -401590305
Long: -401590305
Long long: -401590305
What is the expected behavior?
Expected result
How can I get the -1001128970273 value?
Which compiler and operating system are you using? Is it a supported compiler?
Compiler Detail:
ammarfaizi2@CraynerCenter:~/project/now/bot-s6/build$ g++ --version
g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
What is the issue you have?
I have a JSON string like this
Then, I want to get the
["message"]["chat"]["id"]
, but cannot get the correct value.Please describe the steps to reproduce the issue. Can you provide a small but working code example?
Example code
What is the actual behavior?
Program output:
What is the expected behavior?
Expected result
How can I get the
-1001128970273
value?Which compiler and operating system are you using? Is it a supported compiler?
Compiler Detail:
OS Detail:
Did you use a released version of the library or the version from the
develop
branch?I used the released version (downloaded from: https://github.com/nlohmann/json/releases/download/v3.6.1/json.hpp)
I will check it up soon.
The text was updated successfully, but these errors were encountered: