Line data Source code
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 140 : ObjectSharedPtr Factory::loadFromString(const std::string& json) { 10 140 : return Nlohmann::Factory::loadFromString(json); 11 140 : } 12 : 13 0 : absl::StatusOr<ObjectSharedPtr> Factory::loadFromStringNoThrow(const std::string& json) { 14 0 : return Nlohmann::Factory::loadFromStringNoThrow(json); 15 0 : } 16 : 17 0 : ObjectSharedPtr Factory::loadFromProtobufStruct(const ProtobufWkt::Struct& protobuf_struct) { 18 0 : return Nlohmann::Factory::loadFromProtobufStruct(protobuf_struct); 19 0 : } 20 : 21 : } // namespace Json 22 : } // namespace Envoy