mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Fix truncating JsonString (#552)
This commit is contained in:
parent
1b106ef270
commit
b548ae61dd
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ struct JsonBytes {
|
||||||
};
|
};
|
||||||
|
|
||||||
inline void to_json(JsonValueScope &jv, const JsonBytes json_bytes) {
|
inline void to_json(JsonValueScope &jv, const JsonBytes json_bytes) {
|
||||||
jv << JsonString(PSLICE() << base64_encode(json_bytes.bytes));
|
auto base64 = base64_encode(json_bytes.bytes);
|
||||||
|
jv << JsonString(base64);
|
||||||
}
|
}
|
||||||
template <class T>
|
template <class T>
|
||||||
struct JsonVectorBytesImpl {
|
struct JsonVectorBytesImpl {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue