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
964
absl::StatusOr<ObjectSharedPtr> Factory::loadFromString(const std::string& json) {
10
964
  return Nlohmann::Factory::loadFromString(json);
11
964
}
12

            
13
37
ObjectSharedPtr Factory::loadFromProtobufStruct(const Protobuf::Struct& protobuf_struct) {
14
37
  return Nlohmann::Factory::loadFromProtobufStruct(protobuf_struct);
15
37
}
16

            
17
18
std::vector<uint8_t> Factory::jsonToMsgpack(const std::string& json) {
18
18
  return Nlohmann::Factory::jsonToMsgpack(json);
19
18
}
20

            
21
4
const std::string Factory::listAsJsonString(const std::list<std::string>& items) {
22
4
  return Nlohmann::Factory::serialize(items);
23
4
}
24

            
25
} // namespace Json
26
} // namespace Envoy