diff options
author | qkrorlqr <qkrorlqr@yandex-team.ru> | 2022-02-10 16:47:20 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:20 +0300 |
commit | 9b89266638b10d40309e31dcb7caa2fc52b2aefd (patch) | |
tree | aaf0d6ece270940a4f208e4202e4a37a15ce05b7 /library/cpp/json/json_reader.h | |
parent | 47af3b5bf148ddab250833ec454d30d7c4930c31 (diff) | |
download | ydb-9b89266638b10d40309e31dcb7caa2fc52b2aefd.tar.gz |
Restoring authorship annotation for <qkrorlqr@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/json/json_reader.h')
-rw-r--r-- | library/cpp/json/json_reader.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/library/cpp/json/json_reader.h b/library/cpp/json/json_reader.h index b673788330..437bf18bad 100644 --- a/library/cpp/json/json_reader.h +++ b/library/cpp/json/json_reader.h @@ -64,12 +64,12 @@ namespace NJson { TJsonCallbacks c(throwOnError); return ReadJson(in, config, &c); } - + inline bool ValidateJson(TStringBuf in, const TJsonReaderConfig& config = TJsonReaderConfig(), bool throwOnError = false) { TMemoryInput min(in.data(), in.size()); return ValidateJson(&min, &config, throwOnError); } - + inline bool ValidateJsonThrow(IInputStream* in, const TJsonReaderConfig* config) { return ValidateJson(in, config, true); } |