aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/json/writer/json_value.cpp
diff options
context:
space:
mode:
authorivanmorozov <ivanmorozov@yandex-team.ru>2022-02-10 16:47:33 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:33 +0300
commitcba5d9a444e2cfe105f55ccda66cd21d50440017 (patch)
tree79983e83d1a91aebeb1999338090eec69e24cc33 /library/cpp/json/writer/json_value.cpp
parenteb540cc7a103419462d0cc870ca403966e2194c6 (diff)
downloadydb-cba5d9a444e2cfe105f55ccda66cd21d50440017.tar.gz
Restoring authorship annotation for <ivanmorozov@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/json/writer/json_value.cpp')
-rw-r--r--library/cpp/json/writer/json_value.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/library/cpp/json/writer/json_value.cpp b/library/cpp/json/writer/json_value.cpp
index c61e8d1dc4..fe9ae61505 100644
--- a/library/cpp/json/writer/json_value.cpp
+++ b/library/cpp/json/writer/json_value.cpp
@@ -9,7 +9,7 @@
#include <util/stream/output.h>
#include <util/string/cast.h>
#include <util/string/type.h>
-#include <util/string/vector.h>
+#include <util/string/vector.h>
#include <util/system/yassert.h>
#include <util/ysaveload.h>
#include <util/generic/bt_exception.h>
@@ -850,7 +850,7 @@ namespace NJson {
}
return currentJson;
- }
+ }
} // anonymous namespace
bool TJsonValue::GetValueByPath(const TStringBuf path, TJsonValue& result, char delimiter) const {
@@ -860,8 +860,8 @@ namespace NJson {
return true;
}
return false;
- }
-
+ }
+
bool TJsonValue::SetValueByPath(const TStringBuf path, const TJsonValue& value, char delimiter) {
TJsonValue* const ptr = GetValuePtrByPath<true>(this, path, delimiter);
if (ptr) {
@@ -886,12 +886,12 @@ namespace NJson {
TJsonValue* TJsonValue::GetValueByPath(const TStringBuf key, char delim) noexcept {
return GetValuePtrByPath<false>(this, key, delim);
- }
+ }
void TJsonValue::DoScan(const TString& path, TJsonValue* parent, IScanCallback& callback) {
if (!callback.Do(path, parent, *this)) {
return;
- }
+ }
if (Type == JSON_MAP) {
for (auto&& i : *Value.Map) {
@@ -901,9 +901,9 @@ namespace NJson {
for (ui32 i = 0; i < Value.Array->size(); ++i) {
(*Value.Array)[i].DoScan(TString::Join(path, "[", ToString(i), "]"), this, callback);
}
- }
- }
-
+ }
+ }
+
void TJsonValue::Scan(IScanCallback& callback) {
DoScan("", nullptr, callback);
}