1 #ifndef IPFS_DAG_JSON_VALUE_H_
2 #define IPFS_DAG_JSON_VALUE_H_
4 #include <ipfs_client/cid.h>
10 #include <string_view>
17 virtual std::string pretty_print()
const = 0;
18 virtual std::unique_ptr<DagJsonValue> operator[](std::string_view)
const = 0;
19 virtual std::optional<std::string> get_if_string()
const = 0;
20 virtual std::optional<std::vector<std::string>> object_keys()
const = 0;
21 virtual bool iterate_list(std::function<
void(
DagJsonValue const&)>)
const = 0;
24 std::optional<Cid> get_if_link()
const;
Definition: dag_json_value.h:15