diff options
author | ivanmorozov <[email protected]> | 2022-02-10 16:47:34 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:47:34 +0300 |
commit | 464ba3814a83db4f2d5327393b0b6eaf0c86bfd7 (patch) | |
tree | c0748b5dcbade83af788c0abfa89c0383d6b779c /library/cpp/json/json_writer.cpp | |
parent | cba5d9a444e2cfe105f55ccda66cd21d50440017 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/json/json_writer.cpp')
-rw-r--r-- | library/cpp/json/json_writer.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/json/json_writer.cpp b/library/cpp/json/json_writer.cpp index a6345e0943b..3d058bae360 100644 --- a/library/cpp/json/json_writer.cpp +++ b/library/cpp/json/json_writer.cpp @@ -118,22 +118,22 @@ namespace NJson { Buf.WriteJsonValue(v, SortKeys, FloatToStringMode, DoubleNDigits); } - void TJsonWriter::Write(const TJsonValue& v) { - Buf.WriteJsonValue(&v, SortKeys, FloatToStringMode, DoubleNDigits); - } - + void TJsonWriter::Write(const TJsonValue& v) { + Buf.WriteJsonValue(&v, SortKeys, FloatToStringMode, DoubleNDigits); + } + TString WriteJson(const TJsonValue* value, bool formatOutput, bool sortkeys, bool validateUtf8) { TStringStream ss; WriteJson(&ss, value, formatOutput, sortkeys, validateUtf8); return ss.Str(); } - + TString WriteJson(const TJsonValue& value, bool formatOutput, bool sortkeys, bool validateUtf8) { TStringStream ss; WriteJson(&ss, &value, formatOutput, sortkeys, validateUtf8); return ss.Str(); } - + void WriteJson(IOutputStream* out, const TJsonValue* val, bool formatOutput, bool sortkeys, bool validateUtf8) { TJsonWriter w(out, formatOutput, sortkeys, validateUtf8); w.Write(val); |