/proc/self/cwd/source/common/json/json_loader.cc
Line | Count | Source (jump to first uncovered line) |
1 | | #include "source/common/json/json_loader.h" |
2 | | |
3 | | #include "source/common/json/json_internal.h" |
4 | | #include "source/common/runtime/runtime_features.h" |
5 | | |
6 | | namespace Envoy { |
7 | | namespace Json { |
8 | | |
9 | 13.8k | ObjectSharedPtr Factory::loadFromString(const std::string& json) { |
10 | 13.8k | return Nlohmann::Factory::loadFromString(json); |
11 | 13.8k | } |
12 | | |
13 | 0 | absl::StatusOr<ObjectSharedPtr> Factory::loadFromStringNoThrow(const std::string& json) { |
14 | 0 | return Nlohmann::Factory::loadFromStringNoThrow(json); |
15 | 0 | } |
16 | | |
17 | 74 | ObjectSharedPtr Factory::loadFromProtobufStruct(const ProtobufWkt::Struct& protobuf_struct) { |
18 | 74 | return Nlohmann::Factory::loadFromProtobufStruct(protobuf_struct); |
19 | 74 | } |
20 | | |
21 | 0 | std::vector<uint8_t> Factory::jsonToMsgpack(const std::string& json) { |
22 | 0 | return Nlohmann::Factory::jsonToMsgpack(json); |
23 | 0 | } |
24 | | |
25 | | } // namespace Json |
26 | | } // namespace Envoy |