mirror of
https://github.com/nlohmann/json.git
synced 2025-07-16 18:41:53 +03:00
Adjust JSON Pointer examples (#3622)
* 📝 adjust JSON Pointer examples * 👷 add test for documentation * 📝 note platform-dependent output on some examples
This commit is contained in:
@ -13,8 +13,8 @@ int main()
|
||||
|
||||
// call empty()
|
||||
std::cout << std::boolalpha
|
||||
<< ptr0 << ": " << ptr0.empty() << '\n'
|
||||
<< ptr1 << ": " << ptr1.empty() << '\n'
|
||||
<< ptr2 << ": " << ptr2.empty() << '\n'
|
||||
<< ptr3 << ": " << ptr3.empty() << std::endl;
|
||||
<< "\"" << ptr0 << "\": " << ptr0.empty() << '\n'
|
||||
<< "\"" << ptr1 << "\": " << ptr1.empty() << '\n'
|
||||
<< "\"" << ptr2 << "\": " << ptr2.empty() << '\n'
|
||||
<< "\"" << ptr3 << "\": " << ptr3.empty() << std::endl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user