ipfs-chromium
Loading...
Searching...
No Matches
nlohmann_json_parser.h
1#ifndef IPFS_CHROMIUM_NLOHMANN_JSON_PARSER_H
2#define IPFS_CHROMIUM_NLOHMANN_JSON_PARSER_H
3
4#include "json_parser.h"
5
6#include <ipfs_client/json_cbor_adapter.h>
7
8#if HAS_JSON_CBOR_ADAPTER
9
10namespace ipfs::ctx {
11class NlohmannJsonParser : public JsonParser {
12 public:
13 std::unique_ptr<DagJsonValue> Parse(std::string_view) override;
14 ~NlohmannJsonParser() noexcept override {}
15};
16} // namespace ipfs::ctx
17
18#endif // HAS_JSON_CBOR_ADAPTER
19#endif // IPFS_CHROMIUM_NLOHMANN_JSON_PARSER_H