Talendでサポートされているテクノロジーの詳細は、を参照してください。
このシナリオでは、複数のループ経由でJSONファイルからデータを抽出するジョブについて説明し、データをコンソールに表示します。
以下にJSONファイル、sample.jsonのコンテンツをリスト表示します。
{
"Guid": "a2hdge9-5517-4e12-b9j6-887ft29e1711",
"Transactions": [
{
"TransactionId": 1,
"Products": [
{
"ProductId": "A1",
"Packs": [
{
"Quantity": 20,
"Price": 40.00,
"Due_Date": "2019/03/01"
}
]
}
]
},
{
"TransactionId": 2,
"Products": [
{
"ProductId": "B1",
"Packs": [
{
"Quantity": 1,
"Price": 15.00,
"Due_Date": "2019/01/01"
},
{
"Quantity": 21,
"Price": 315.00,
"Due_Date": "2019/02/14"
}
]
}
]
},
{
"TransactionId": 3,
"Products": [
{
"ProductId": "C1",
"Packs": [
{
"Quantity": 2,
"Price": 5.00,
"Due_Date": "2019/02/19"
},
{
"Quantity": 3,
"Price": 7.50,
"Due_Date": "2019/05/21"
}
]
}
]
}
]
}
このジョブは、以下のエレメントの値を抽出します。
- Guid
- TransactionId
- Product_ID
- quantity
- Price
- Due-Date