# how to set json input  arc script

**URL:** <https://community.cdata.com/t/how-to-set-json-input-arc-script/1103>\
**Category:** CData Arc\
**Tags:** question\
**Created:** [June 6, 2025, 6:00am UTC](https://community.cdata.com/t/how-to-set-json-input-arc-script/1103 "2025-06-06T06:00:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer1.mapol](https://avatars.discourse-cdn.com/v4/letter/d/d9b06d/32.png) [@developer1.mapol](https://community.cdata.com/u/developer1.mapol)\
**Post date:** [June 6, 2025, 6:00am UTC](https://community.cdata.com/t/how-to-set-json-input-arc-script/1103/1 "2025-06-06T06:00:41Z")

</div>

\<arc:set attr=“input.uri” value=“[FilePath]”/\>  
\<arc:call op=“xmlOpen” input=“input”\>  
&nbsp; \<arc:set attr=“xml.handle” value=“[handle]” /\>  
\</arc:call\>  
\<arc:set attr=“xml.map:lastupdate” value=“/Items/gtm\_req\_pr\_details\_ib\_pr/lastupdate”/\>  
\<arc:set attr=“xml.map:till\_date” &nbsp; &nbsp; value=“/Items/gtm\_req\_pr\_details\_ib\_pr/till\_date”/\>

arc:try  
&nbsp; \<arc:call op=“xmlDOMGet” in=“xml” out=“out1”\>  
&nbsp; &nbsp; \<arc:set attr=“data.lastupdate” value=“[out1.lastupdate]”/\>  
&nbsp; &nbsp; \<arc:set attr=“data.till\_date” &nbsp; &nbsp; value=“[out1.till\_date]”/\>  
&nbsp; \</arc:call\>  
&nbsp; \<arc:set attr=“http.URL” value=“[https://api.com/purchaserequisitions?approvalLeftDate=\[data.lastupdate]&approvalRightDate=\[data.till\_date]](https://api.com/purchaserequisitions?approvalLeftDate=%5C%5Bdata.lastupdate%5D&approvalRightDate=%5C%5Bdata.till%5C_date%5D)” /\> &nbsp;  
\<arc:set attr=“http.header:name#” value=“X-AUTH-TOKEN” /\>  
\<arc:set attr=“http.header:value#” value=“xcxcxcxcdxcxcccccccc”/\>  
\<arc:set attr=“http.header:name#” value=“email” /\>  
\<arc:set attr=“http.header:value#” value=“[api@gmail.com](mailto:api@gmail.com)”/\>

\<arc:call op=“httpPost” in=“http”\>  
&nbsp; \<arc:set attr=“output.data” value=“josninput how” /\>  
\</arc:call\>

\<arc:set attr=“output.filename” value=“dh-fetch-order-[data.till\_date].json” /\>  
\<arc:push item=“output” /\>&nbsp;  
&nbsp; arc:finally  
&nbsp; &nbsp; \<arc:call op=“xmlClose” input=“xml”/\>  
&nbsp; \</arc:finally\>  
\</arc:try\>\<!-- NOTE: Do not edit arc:info →

\<arc:call op=“httpPost” in=“http”\>  
&nbsp; \<arc:set attr=“output.data” value=“josninput how” /\>  
\</arc:call\>&nbsp; how to set json input

---

<div class="post-metadata">

**Author:** ![lohith](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/lohith/32/1848_2.png) [@lohith](https://community.cdata.com/u/lohith)\
**Post date:** [June 10, 2025, 11:49am UTC](https://community.cdata.com/t/how-to-set-json-input-arc-script/1103/2 "2025-06-10T11:49:41Z")

</div>

Hi,

What exactly the Json input you are referring to? Is it the response from the Post call? We have complete doc on HttpPost&nbsp;defined at&nbsp;[CData Arc - httpPost | Version 25.3.9469](https://cdn.cdata.com/help/AZM/mft/op_HTTPPost.html)&nbsp;this might help. However, please send the additional details to [arcsupport@cdata.com](http://cdata.com), so that we will have ticket and track it better.

---

<div class="post-metadata">

**Author:** ![James\_B](https://sea3.discourse-cdn.com/cdata/user_avatar/community.cdata.com/james_b/32/1688_2.png) [@James\_B](https://community.cdata.com/u/James_B)\
**Post date:** [June 10, 2025, 1:44pm UTC](https://community.cdata.com/t/how-to-set-json-input-arc-script/1103/3 "2025-06-10T13:44:17Z")

</div>

It is hard to understand the question being asked here, but assuming this question is how to pass the HTTP response from the post to the output content, you’ll find that the http:content&nbsp;output parameter to the operation is what you are looking for

[httpPost help](https://cdn.cdata.com/help/AZM/mft/op_HTTPPost.html#output-attributes):

```xml
<arc:call op="httpPost" in="http">  <arc:set attr="output.data" value="[http:content]" /></arc:call>

```
