h2-mod/deps/json/docs/examples/json_pointer__string_t.cpp

14 lines
303 B
C++
Raw Normal View History

2024-03-07 03:33:59 -05:00
#include <iostream>
#include <nlohmann/json.hpp>
using json = nlohmann::json;
int main()
{
json::json_pointer::string_t s = "This is a string.";
std::cout << s << std::endl;
std::cout << std::boolalpha << std::is_same<json::json_pointer::string_t, json::string_t>::value << std::endl;
}