# Unable to process the JSON request in POST method

**URL:** <https://forum.ansible.com/t/unable-to-process-the-json-request-in-post-method/28677>\
**Category:** Ansible Project\
**Created:** [September 28, 2018, 6:20pm UTC](https://forum.ansible.com/t/unable-to-process-the-json-request-in-post-method/28677 "2018-09-28T18:20:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shyam](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@Shyam](https://forum.ansible.com/u/Shyam)\
**Post date:** [September 28, 2018, 6:20pm UTC](https://forum.ansible.com/t/unable-to-process-the-json-request-in-post-method/28677/1 "2018-09-28T18:20:42Z")

</div>

Hi,

Unable process the JSON request in POST method can any one help.

---

<div class="post-metadata">

**Author:** ![Kuldip\_Madnani1](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@Kuldip\_Madnani1](https://forum.ansible.com/u/Kuldip_Madnani1)\
**Post date:** [September 28, 2018, 6:37pm UTC](https://forum.ansible.com/t/unable-to-process-the-json-request-in-post-method/28677/2 "2018-09-28T18:37:57Z")

</div>

Add this and try:

headers:  
Content-Type: “application/json”

---

<div class="post-metadata">

**Author:** ![Shyam](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@Shyam](https://forum.ansible.com/u/Shyam)\
**Post date:** [September 28, 2018, 6:58pm UTC](https://forum.ansible.com/t/unable-to-process-the-json-request-in-post-method/28677/3 "2018-09-28T18:58:51Z")

</div>

Hi Kuladip,

Thanks for your reply. I have tried the option still getting the same error. Any other suggestion please ?

---

<div class="post-metadata">

**Author:** ![Kuldip\_Madnani1](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@Kuldip\_Madnani1](https://forum.ansible.com/u/Kuldip_Madnani1)\
**Post date:** [September 28, 2018, 7:04pm UTC](https://forum.ansible.com/t/unable-to-process-the-json-request-in-post-method/28677/4 "2018-09-28T19:04:14Z")

</div>



---

<div class="post-metadata">

**Author:** ![Kuldip\_Madnani1](https://avatars.discourse-cdn.com/v4/letter/k/91b2a8/32.png) [@Kuldip\_Madnani1](https://forum.ansible.com/u/Kuldip_Madnani1)\
**Post date:** [September 28, 2018, 7:07pm UTC](https://forum.ansible.com/t/unable-to-process-the-json-request-in-post-method/28677/5 "2018-09-28T19:07:20Z")

</div>

Based on the error “No Content”, i guess the file test.json contents are not readable, can you put the file contents as a json string in the body and see if it works, at least that will help you narrow down the problem.
