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:
@ -10,6 +10,6 @@ int main()
|
||||
json::json_pointer ptr2("/foo/0");
|
||||
|
||||
// call empty()
|
||||
std::cout << "last reference token of " << ptr1 << " is " << ptr1.back() << '\n'
|
||||
<< "last reference token of " << ptr2 << " is " << ptr2.back() << std::endl;
|
||||
std::cout << "last reference token of \"" << ptr1 << "\" is \"" << ptr1.back() << "\"\n"
|
||||
<< "last reference token of \"" << ptr2 << "\" is \"" << ptr2.back() << "\"" << std::endl;
|
||||
}
|
||||
|
Reference in New Issue
Block a user