diff options
Diffstat (limited to 'library/cpp/json/writer/json_value.h')
-rw-r--r-- | library/cpp/json/writer/json_value.h | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/library/cpp/json/writer/json_value.h b/library/cpp/json/writer/json_value.h index 3f0f50bc4c..1af20b7088 100644 --- a/library/cpp/json/writer/json_value.h +++ b/library/cpp/json/writer/json_value.h @@ -265,30 +265,30 @@ namespace NJson { bool GetMapPointer(const TJsonValue& jv, const TStringBuf key, const TJsonValue::TMapType** value); bool GetArrayPointer(const TJsonValue& jv, const TStringBuf key, const TJsonValue::TArray** value); - - class TJsonMap: public TJsonValue { - public: - TJsonMap() - : TJsonValue(NJson::JSON_MAP) - {} - - TJsonMap(const std::initializer_list<std::pair<TString, TJsonValue>>& list) - : TJsonValue(NJson::JSON_MAP) - { - GetMapSafe() = THashMap<TString, TJsonValue>(list); - } - }; - - class TJsonArray: public TJsonValue { - public: - TJsonArray() - : TJsonValue(NJson::JSON_ARRAY) - {} - - TJsonArray(const std::initializer_list<TJsonValue>& list) - : TJsonValue(NJson::JSON_ARRAY) - { - GetArraySafe() = TJsonValue::TArray(list); - } - }; + + class TJsonMap: public TJsonValue { + public: + TJsonMap() + : TJsonValue(NJson::JSON_MAP) + {} + + TJsonMap(const std::initializer_list<std::pair<TString, TJsonValue>>& list) + : TJsonValue(NJson::JSON_MAP) + { + GetMapSafe() = THashMap<TString, TJsonValue>(list); + } + }; + + class TJsonArray: public TJsonValue { + public: + TJsonArray() + : TJsonValue(NJson::JSON_ARRAY) + {} + + TJsonArray(const std::initializer_list<TJsonValue>& list) + : TJsonValue(NJson::JSON_ARRAY) + { + GetArraySafe() = TJsonValue::TArray(list); + } + }; } |