aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/types/binary_json/write.h
blob: c4f8f89d2d2b9f77d999773b6183eed26cfca849 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once

#include "format.h"

#include <yql/essentials/minikql/dom/node.h>

#include <util/generic/maybe.h>

#include <variant>

namespace NKikimr::NBinaryJson {

/**
 * @brief Translates textual JSON into BinaryJson
 */
std::variant<TBinaryJson, TString> SerializeToBinaryJson(const TStringBuf json);

/**
 * @brief Translates DOM layout from `yql/library/dom` library into BinaryJson
 */
TBinaryJson SerializeToBinaryJson(const NUdf::TUnboxedValue& value);

}