aboutsummaryrefslogtreecommitdiffstats
path: root/yql/essentials/minikql/dom/yson.h
blob: 2fb6ac1ee3ed650276f4cfbf231f7b28e483fea1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <yql/essentials/public/udf/udf_value.h>
#include <yql/essentials/public/udf/udf_value_builder.h>

namespace NYql::NDom {

bool IsValidYson(const TStringBuf yson);

NUdf::TUnboxedValue TryParseYsonDom(const TStringBuf yson, const NUdf::IValueBuilder* valueBuilder);

TString SerializeYsonDomToBinary(const NUdf::TUnboxedValue& dom);

TString SerializeYsonDomToText(const NUdf::TUnboxedValue& dom);

TString SerializeYsonDomToPrettyText(const NUdf::TUnboxedValue& dom);

}