Updated nlohmann::basic_json::is_null (markdown)
1 parent
5735b5a2d2
commit
e18b10a190
1 file changed
+10
-10
+10
-10
@@ -38,11 +38,11 @@ int main()
|
|||||||
nlohmann::json j_string = "Hello, world";
|
nlohmann::json j_string = "Hello, world";
|
||||||
|
|
||||||
std::cout << std::boolalpha << j_null.is_null() << '\n';
|
std::cout << std::boolalpha << j_null.is_null() << '\n';
|
||||||
std::cout << std::boolalpha << j_boolean.is_boolean() << '\n';
|
std::cout << std::boolalpha << j_boolean.is_null() << '\n';
|
||||||
std::cout << std::boolalpha << j_number.is_number() << '\n';
|
std::cout << std::boolalpha << j_number.is_null() << '\n';
|
||||||
std::cout << std::boolalpha << j_object.is_object() << '\n';
|
std::cout << std::boolalpha << j_object.is_null() << '\n';
|
||||||
std::cout << std::boolalpha << j_array.is_array() << '\n';
|
std::cout << std::boolalpha << j_array.is_null() << '\n';
|
||||||
std::cout << std::boolalpha << j_string.is_string() << '\n';
|
std::cout << std::boolalpha << j_string.is_null() << '\n';
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -50,11 +50,11 @@ int main()
|
|||||||
|
|
||||||
```
|
```
|
||||||
true
|
true
|
||||||
true
|
false
|
||||||
true
|
false
|
||||||
true
|
false
|
||||||
true
|
false
|
||||||
true
|
false
|
||||||
```
|
```
|
||||||
|
|
||||||
## See also
|
## See also
|
||||||
|
|||||||
Reference in new issue
Block a user