nlohmann::basic_json::contains

check the existence of an element in a JSON object given a JSON pointer

Synopsis

Declared in <nlohmann/json.hpp>

bool
contains(json_pointer const& ptr) const;

Parameters

NameDescription
ptrJSON Pointer, see nlohmann::json_pointer