| 25 | |
| 26 | template <typename TContainerType> |
| 27 | static void SetContainerOption(const TContainerType& container, const TString& name, NJson::TJsonValue* optionsJson) { |
| 28 | optionsJson->InsertValue(name, NJson::EJsonValueType::JSON_ARRAY); |
| 29 | for (const auto& element : container) { |
| 30 | (*optionsJson)[name].AppendValue(ToString(element)); |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | template <typename TType> |
| 35 | static void GetOption(const NJson::TJsonValue& optionsJson, const TString& name, TType* result) { |
no test coverage detected