Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Talend中通过trestclient发送Json documnet?_Json_Api_Rest_Talend - Fatal编程技术网

如何在Talend中通过trestclient发送Json documnet?

如何在Talend中通过trestclient发送Json documnet?,json,api,rest,talend,Json,Api,Rest,Talend,我想使用Talend中的tRESTClient组件通过RESTAPI发送以下JSON。我不想把它转换成字符串。API只处理文档 { "dataSource" : "", "businessPartners": [ { "externalId": "123", "record": "{\"MyId\":\"

我想使用Talend中的tRESTClient组件通过RESTAPI发送以下JSON。我不想把它转换成字符串。API只处理文档

{
  "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指令。