Http task - request body

Hi,

What is the format for types such as email address and dates that need to be passed in the flowable http task for it to work?

I am currently passing the following request body:

{

“visitCompletionDate”: “06/28/2020”,
“ownerName”: “Mike”,
“invoiceAmount”: 244,
“paymentDueDate”: “07/11/2020”,
“invoiceStatus”: “Paid”

}

This http request is triggering an external ReST API.

I am getting the following exception:

com.fasterxml.jackson.core.JsonParseException

It’s not able to parse the two dates and also the ownerName

com.fasterxml.jackson.core.JsonParseException: Invalid numeric value: Leading zeroes not allowed
at [Source: (org.apache.camel.converter.stream.InputStreamCache); line: 2, column: 25]

com.fasterxml.jackson.core.JsonParseException: Unrecognized token ‘Mike’: was expecting (‘true’, ‘false’ or ‘null’)
at [Source: (org.apache.camel.converter.stream.InputStreamCache); line: 3, column: 20]

Any idea what’s going on? Is there a specific format I should use in the request body when using the flowable http task?

It looks like it’s not recognizing the string. Could it be that the quotes are wrong? Have you tried with single quotes or double quotes ( ' or ")?