diff options
author | robot-piglet <robot-piglet@yandex-team.com> | 2023-03-22 18:13:25 +0300 |
---|---|---|
committer | robot-piglet <robot-piglet@yandex-team.com> | 2023-03-22 18:13:25 +0300 |
commit | dfe8393a73e72a0e123100eada9481728721041d (patch) | |
tree | 1cd2beb1a4dea7460d0f388793495e73c80b0594 | |
parent | 18a7faa3ef7d431c4ba894e18d409bb7e8a849fc (diff) | |
download | ydb-dfe8393a73e72a0e123100eada9481728721041d.tar.gz |
Intermediate changes
-rw-r--r-- | library/cpp/json/converter/converter.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/library/cpp/json/converter/converter.h b/library/cpp/json/converter/converter.h index 04f26b6946..4e92b2e0cf 100644 --- a/library/cpp/json/converter/converter.h +++ b/library/cpp/json/converter/converter.h @@ -80,6 +80,17 @@ namespace NJson { } template<> + struct TConverter<TJsonValue> { + static TJsonValue Encode(const TJsonValue& value) { + return value; + } + + static TJsonValue Decode(const TJsonValue& value) { + return value; + } + }; + + template<> struct TConverter<bool>: public TDefaultEncoder<bool> { static inline bool Decode(const TJsonValue& value) { return value.GetBooleanSafe(); |