All Apps and Add-ons

WebTools - Error "Invalid JSON payload"

Morty2
New Member

Good Afternoon, 

Running a super basic test to validate i can send a POST to our Ansible Tower Listener.

Search: 

| makeresults
| eval header="{\"content-type\":\"application/json\"}"
| eval data="{\"Message\": \"This is a test\"}"
| eval id="http://Somehost:someport/"
| curl method=post urifield=id headerfield=header datafield=data debug=true


The same payload in Postman works 100% 

what i have noticed is that its converting the double quotes to single:
curl_data_payload:
{'monitor_state': 'unmonitored'}

When i test this payload in Post man it also fails with the same message invalid JSON payload.

Has Anyone had this issue? knows how to address it... I have no hair left to rip out. 

Labels (1)
Tags (1)
0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...