Class JsonDestination<TInput>

A Json destination defines a json file where data from the flow is inserted.

Inherited Members
Namespace: ETLBox.Json
Assembly: ETLBox.Json.dll
Syntax
    public class JsonDestination<TInput> : DataFlowStreamDestination<TInput>, IDataFlowLogging, IDataFlowStreamDestination<TInput>, IDataFlowDestination<TInput>, IDataFlowStreamDestination, IDataFlowDestination, IDataFlowComponent, ILoggableTask
Type Parameters
NameDescription
TInput

Type of ingoing data.

Examples
JsonDestination<MyRow> dest = new JsonDestination<MyRow>("/path/to/file.json");
dest.Wait(); //Wait for all data to arrive

Constructors

JsonDestination()

Declaration
    public JsonDestination()

JsonDestination(string)

Declaration
    public JsonDestination(string uri)
Parameters
TypeNameDescription
stringuri

The source csv file name or uri

JsonDestination(string, ResourceType)

Declaration
    public JsonDestination(string uri, ResourceType resourceType)
Parameters
TypeNameDescription
stringuri

The source csv file name or uri

ResourceTyperesourceType

The type of resource for the uri (e.g. file or http)

Properties

HttpContentType

The content type used when sending the http request content.

Declaration
    public override string HttpContentType { get; set; }
Property Value
TypeDescription
string
Overrides

JsonSerializer

The Newtonsoft.Json.JsonSerializer used to deserialize the json into the used data type.

Declaration
    public JsonSerializer JsonSerializer { get; set; }
Property Value
TypeDescription
JsonSerializer

Methods

CheckParameter()

Declaration
    protected override void CheckParameter()
Overrides

CloseStream()

Declaration
    protected override void CloseStream()
Overrides

InitStream()

Declaration
    protected override void InitStream()
Overrides

WriteIntoStream(TInput)

Declaration
    protected override void WriteIntoStream(TInput data)
Parameters
TypeNameDescription
TInputdata
Overrides

Implements