# Problem posting json object as form parameter from translated curl command

**URL:** <https://community.postman.com/t/problem-posting-json-object-as-form-parameter-from-translated-curl-command/25129>\
**Category:** Help Hub\
**Tags:** json, form-data, curl\
**Created:** [June 23, 2021, 12:32pm UTC](https://community.postman.com/t/problem-posting-json-object-as-form-parameter-from-translated-curl-command/25129 "2021-06-23T12:32:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mike](https://community.postman.com/u/mike)\
**Post date:** [June 23, 2021, 12:32pm UTC](https://community.postman.com/t/problem-posting-json-object-as-form-parameter-from-translated-curl-command/25129/1 "2021-06-23T12:32:45Z")

</div>

Hi there, first time posting here;

ive got a curl command (that ive verified works ok in curl) but translating it to Postman is proving troublesome

curl --insecure --cookie SessionID="==value====" -H “Accept: application/xml” --data “searchCriteria={‘criteria’:[{‘field’:‘doc\_ref’,‘operator’:‘3’,‘values’:[‘doc\_name\_to\_find’]}]}” [https://adoddleak.asite.com/commonapi/documentsearchapi/search](https://adoddleak.asite.com/commonapi/documentsearchapi/search)\>documentsearch.xml

the main problem i seem to be having is that its a form encoded post with a parameter that contains a json object (rather than a flat body post) and i just cannot figure out how to enter it into postman to make it work

can anyone help me please?

example json object  
{  
‘criteria’:[  
{  
‘field’:‘folder\_id’,  
‘operator’:1,  
‘values’:[‘885937637628’]  
},  
{  
‘field’:‘doc\_ref’,  
‘operator’:1,  
‘values’:[‘doc\_name\_to\_find.pdf’]  
}  
],  
‘generateShareLink’:‘false’,  
‘read-only’:‘true’  
}

things ive tried:  
importing the curl command as text using the Import system, but it fails with “Error while importing Curl: arg.startsWith is not a function”

raw post:  
“searchCriteria={‘criteria’:[{‘field’:‘doc\_ref’,‘operator’:‘3’,‘values’:[‘CORP-KMS-LAN-PRC-0023’]}]}”  
searchCriteria={‘criteria’:[{‘field’:‘doc\_ref’,‘operator’:‘3’,‘values’:[‘CORP-KMS-LAN-PRC-0023’]}]}  
etc

x-www-form-urlencoded

 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/3/3ad925d7b4bd0d4d12fecc0f691edd086889aeb1.png)

attempted arrays using the postman array system  
 ![image](https://us1.discourse-cdn.com/getpostman/original/2X/a/a10f3e1c107787339b21f72e4c5a0495b56d0c26.png)

im either so far off the mark its silly or im missing something super basic and stupid.

cheers,  
M

---

<div class="post-metadata">

**Author:** ![mike](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@mike](https://community.postman.com/u/mike)\
**Post date:** [June 25, 2021, 9:33am UTC](https://community.postman.com/t/problem-posting-json-object-as-form-parameter-from-translated-curl-command/25129/2 "2021-06-25T09:33:32Z")

</div>

i was being an idiot, the \>documentsearch.xml is the output command of curl and isnt part of the URL.
