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 b3e1d27 commit 41bb715Copy full SHA for 41bb715
test/example3.cpp
@@ -32,8 +32,8 @@ int main() {
32
33
// get a specific value
34
json::value z = v["test4"][3]["z"];
35
- std::cout << to_number(z) << std::endl;
36
- std::cout << to_integer(z) << std::endl;
+ std::cout << json::to_number<float>(z) << std::endl;
+ std::cout << json::to_number<int>(z) << std::endl;
37
38
std::cout << stringify(v, json::EscapeUnicode) << '\n';
39
}
0 commit comments