Sha256: 935f51901431aec4dbe1c71d9678f79c6f97a1cf1312a614f981a33e750c842a

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

#include <iostream>
#include <nlohmann/json.hpp>

using json = nlohmann::json;

int main()
{
    // create a JSON pointer
    json::json_pointer ptr("/foo");

    // apppend a JSON Pointer
    std::cout << ptr / json::json_pointer("/bar/baz") << '\n';

    // append a string
    std::cout << ptr / "fob" << '\n';

    // append an array index
    std::cout << ptr / 42 << 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__operator_add_binary.cpp