Sha256: 7c73eb7c32a2d470200c410a746306974394afcf6214256570c035822d1d5b12
Contents?: true
Size: 546 Bytes
Versions: 1
Compression:
Stored size: 546 Bytes
Contents
#include <iostream> #include <nlohmann/json.hpp> using json = nlohmann::json; int main() { // different JSON Pointers json::json_pointer ptr1(""); json::json_pointer ptr2("/foo"); json::json_pointer ptr3("/foo/0"); // call parent_pointer() std::cout << std::boolalpha << "parent of " << ptr1 << " is " << ptr1.parent_pointer() << '\n' << "parent of " << ptr2 << " is " << ptr2.parent_pointer() << '\n' << "parent of " << ptr3 << " is " << ptr3.parent_pointer() << 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__parent_pointer.cpp |