# HttpPost Request Parameter?

**URL:** <https://forum.inductiveautomation.com/t/httppost-request-parameter/10410>\
**Category:** Ignition\
**Created:** [August 27, 2015, 9:14pm UTC](https://forum.inductiveautomation.com/t/httppost-request-parameter/10410 "2015-08-27T21:14:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![son122](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@son122](https://forum.inductiveautomation.com/u/son122)\
**Post date:** [August 27, 2015, 9:14pm UTC](https://forum.inductiveautomation.com/t/httppost-request-parameter/10410/1 "2015-08-27T21:14:52Z")

</div>

Looking at the documentation found here: [https://support.inductiveautomation.com/usermanuals/ignition/index.html?system\_net\_httppost.htm](https://support.inductiveautomation.com/usermanuals/ignition/index.html?system_net_httppost.htm), I don’t understand the postData parameter.  
Is it expecting a certain string format?

I need to pass data to the server via JSON.  
Something like “{‘Id’: 2, ‘Desc’:‘Testing’}”

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [August 27, 2015, 10:31pm UTC](https://forum.inductiveautomation.com/t/httppost-request-parameter/10410/2 "2015-08-27T22:31:58Z")

</div>

[code]dict = {‘Id’: 2, ‘Desc’:‘Testing’}

postData = system.util.jsonEncode(dict)[/code]

---

<div class="post-metadata">

**Author:** ![son122](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@son122](https://forum.inductiveautomation.com/u/son122)\
**Post date:** [August 28, 2015, 1:44pm UTC](https://forum.inductiveautomation.com/t/httppost-request-parameter/10410/3 "2015-08-28T13:44:58Z")

</div>

Thank you. ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")  
It turns out jsonEncode does a better job encoding json than what I had.  
The single quote in json was my problem. Needs to be double quote otherwise not valid.

So jsonEncode does all that behind the scene and encodes the dictionary object to:  
{“Id”: 2, “Desc”:“Testing”}
