MCPcopy Create free account
hub / github.com/catboost/catboost / ConvertYson2Json

Function ConvertYson2Json

library/cpp/json/yson/json2yson.cpp:92–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90 }
91
92 void ConvertYson2Json(IInputStream* inputStream, IOutputStream* outputStream) {
93 NYT::TJsonWriter writer(outputStream, ::NYson::EYsonType::Node, NYT::JF_TEXT, NYT::JAM_ON_DEMAND, NYT::SBF_BOOLEAN);
94 NYson::TYsonParser ysonParser(&writer, inputStream, ::NYson::EYsonType::Node);
95 ysonParser.Parse();
96 }
97
98 void ConvertYson2Json(TStringBuf yson, IOutputStream* outputStream) {
99 TMemoryInput inputStream(yson);

Callers

nothing calls this directly

Calls 1

ParseMethod · 0.45

Tested by

no test coverage detected