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
Name | Description |
---|---|
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
Type | Name | Description |
---|---|---|
string | uri | The source csv file name or uri |
JsonDestination(string, ResourceType)
Declaration
public JsonDestination(string uri, ResourceType resourceType)
Parameters
Type | Name | Description |
---|---|---|
string | uri | The source csv file name or uri |
ResourceType | resourceType | 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
Type | Description |
---|---|
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
Type | Description |
---|---|
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
Type | Name | Description |
---|---|---|
TInput | data |