diff options
author | Ruslan Kovalev <ruslan.a.kovalev@gmail.com> | 2022-02-10 16:46:44 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:44 +0300 |
commit | 59e19371de37995fcb36beb16cd6ec030af960bc (patch) | |
tree | fa68e36093ebff8b805462e9e6d331fe9d348214 /library/cpp/json/json_writer.cpp | |
parent | 89db6fe2fe2c32d2a832ddfeb04e8d078e301084 (diff) | |
download | ydb-59e19371de37995fcb36beb16cd6ec030af960bc.tar.gz |
Restoring authorship annotation for Ruslan Kovalev <ruslan.a.kovalev@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/json/json_writer.cpp')
-rw-r--r-- | library/cpp/json/json_writer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/library/cpp/json/json_writer.cpp b/library/cpp/json/json_writer.cpp index 3d058bae36..121ee3a335 100644 --- a/library/cpp/json/json_writer.cpp +++ b/library/cpp/json/json_writer.cpp @@ -1,7 +1,7 @@ #include "json_writer.h" #include <util/charset/utf8.h> -#include <util/generic/algorithm.h> +#include <util/generic/algorithm.h> #include <util/string/cast.h> #include <util/system/yassert.h> @@ -85,7 +85,7 @@ namespace NJson { void TJsonWriter::WriteNull() { Buf.WriteNull(); } - + void TJsonWriter::Write(float value) { Buf.WriteFloat(value, FloatToStringMode, FloatNDigits); } @@ -113,11 +113,11 @@ namespace NJson { } }; } - + void TJsonWriter::Write(const TJsonValue* v) { Buf.WriteJsonValue(v, SortKeys, FloatToStringMode, DoubleNDigits); } - + void TJsonWriter::Write(const TJsonValue& v) { Buf.WriteJsonValue(&v, SortKeys, FloatToStringMode, DoubleNDigits); } @@ -139,7 +139,7 @@ namespace NJson { w.Write(val); w.Flush(); } - + void WriteJson(IOutputStream* out, const TJsonValue* val, const TJsonWriterConfig& config) { TJsonWriter w(out, config, true); w.Write(val); |