expression json tMap to tRestClient

One Star

expression json tMap to tRestClient

Hello,
I would like to send a json expression (in tXMLMap) to a tRestClient for a POST message but I have an error:
Exception in component tRESTClient_4
javax.ws.rs.ClientErrorException: HTTP 422

I want to send this expression : "{\"host_set\":{\"_id\":1009},\"exhaustive\":true,\"indicator\":\"" + row8.content + "\"}"



I think I don't have the good syntax, what's your opinion? can you help me to solve the problem?
Thanks,
Employee

Re: expression json tMap to tRestClient

Hi
In this case simply set a body type to String and avoid using tXMLMap. tXmlMap is only useful if the DOM XML to JSON auto-conversion is expected
Cheers, Sergey