aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/json_output_create.h
blob: ad3889f5e99f43c6e1d10e1c79d53b4b838e2dde (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#pragma once

#include "config.h"
#include "json_output.h"

namespace NJson {
    class TJsonValue;
    class TJsonWriter;
    struct TJsonWriterConfig;
}

class IOutputStream;
class TStringStream;

namespace NProtobufJson {
    TJsonMapOutputPtr CreateJsonMapOutput(IOutputStream& out, const NJson::TJsonWriterConfig& config);
    TJsonMapOutputPtr CreateJsonMapOutput(NJson::TJsonWriter& writer);
    TJsonMapOutputPtr CreateJsonMapOutput(IOutputStream& out, const TProto2JsonConfig& config = TProto2JsonConfig());
    TJsonMapOutputPtr CreateJsonMapOutput(TString& str, const TProto2JsonConfig& config = TProto2JsonConfig());
    TJsonMapOutputPtr CreateJsonMapOutput(NJson::TJsonValue& json);

}