如何在Talend中通过trestclient发送Json documnet?
我想使用Talend中的tRESTClient组件通过RESTAPI发送以下JSON。我不想把它转换成字符串。API只处理文档如何在Talend中通过trestclient发送Json documnet?,json,api,rest,talend,Json,Api,Rest,Talend,我想使用Talend中的tRESTClient组件通过RESTAPI发送以下JSON。我不想把它转换成字符串。API只处理文档 { "dataSource" : "", "businessPartners": [ { "externalId": "123", "record": "{\"MyId\":\"
{
"dataSource" : "",
"businessPartners": [
{
"externalId": "123",
"record": "{\"MyId\":\"123\", \"City\":\"St. Gallen\"}",
"names": [
{
"value": "CDQ AG",
"type": {
"name": "Local",
"technicalKey": "LOCAL"
}
}
],
"addresses": [{
"thoroughfares": [{
"value": "Lukasstrasse 4"
}],
"postCodes": [{
"value": "9008"
}],
"localities": [{
"value": "St. Gallen"
}],
"country": {
"shortName": "CH"
}
}]
}]
}
您需要检查API文档中的消息格式,但可以使用组件tRestClient和POST指令。