Sha256: b1503dc2724b4baf1851873ccc3b8027c61696c24e5605851b29442a26835f33
Contents?: true
Size: 399 Bytes
Versions: 1
Compression:
Stored size: 399 Bytes
Contents
#include <iostream> #include <nlohmann/json.hpp> using json = nlohmann::json; int main() { // different JSON Pointers json::json_pointer ptr1("/foo"); 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; }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simdjson-0.3.0 | vendor/simdjson/dependencies/json/doc/examples/json_pointer__back.cpp |