mirror of
https://github.com/nlohmann/json.git
synced 2024-12-02 21:19:01 +08:00
e3095f636f
* Add operator<< for json_pointer * Deprecate json_pointer::operator string_t() * Update documentation * Move operator<<(basic_json) example * Add example * Add mkdocs-redirects * Move operator<< and operator>> doc pages out of basic_json/ * Rename JSON pointer operator_string to operator_string_t * Add unit test
14 lines
246 B
C++
14 lines
246 B
C++
#include <iostream>
|
|
#include <nlohmann/json.hpp>
|
|
|
|
using json = nlohmann::json;
|
|
|
|
int main()
|
|
{
|
|
// create JSON poiner
|
|
json::json_pointer ptr("/foo/bar/baz");
|
|
|
|
// write string representation to stream
|
|
std::cout << ptr << std::endl;
|
|
}
|