aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/json_output_create.h
blob: 42005bad28b94e1ad860d0e716a7e21b25f35d24 (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);

}