0
SSIS(JSON.netライブラリでスクリプトコンポーネントとC#コード)を使用してJSONファイルを読み取ろうとしています。私のJSONファイルは複雑に見えますが、私はC#コードが初めてです。以下は、JSONファイルの外観のサンプルです。SSISスクリプトコンポーネントを使用してJSONファイルを読み取る
{
"Product": {
"col1": "xyz",
"col2": "ryx"
},
"Samples": [{
"col3": "read",
"col4": "write"
},
{
"col3": "read",
"col4": "update"
}
]
}
助けてください。以下
public class Product
{
public string col1 { get; set; }
public string col2 { get; set; }
}
public class Sample
{
public string col3 { get; set; }
public string col4 { get; set; }
}
public class Root
{
public Product Product { get; set; }
public Sample[] Samples { get; set; }
}
そして、あなたはJSONを読み込むために使用できるコードは次のとおりです。
ありがとうございます。これを試してみましょう – Varma
ファイルまたはアセンブリ 'Newtonsoft.Json、Version = 6.0.0.0、Culture = neutral、PublicKeyToken = 30ad4fe6b2a6aeed'またはその依存関係の1つを読み込めませんでした。システムは、指定されたファイルを見つけることができません。 --- SSISパッケージの実行中にこのエラーが表示される – Varma
まだ解決していません。しかし、これは私に良いイメージを与えます。確かになるでしょう – Varma