- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 11:03 PM
Hi All,
I have used a flow which is using payload builder to build JSON Payload and send the payload as a message to Hermes Kafka using OOTB Kafka Message Producer Step, the JSON Payload is like this:
{
"parent": "",
"caused_by": "",
"u_outage_start_date": "",
"watch_list": ""
}
Here if you can see watch_list is enclosed within double-quotes and it's value which is empty is "" but upon being sent to Hermes Topic the payload is changing to this format:
{
parent: ,
caused_by: ,
u_outage_start_date: ,
watch_list:
} Here if you see there are no double quotes as in the previous payload can someone please tell me why this is happening at hermes end?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 11:33 PM
Hi @Community Alums ,
Double quotes are seemingly removed from string values in JSON payloads, may be related to the way the payload is processed or interpreted at different stages of your integration flow to hermes.
Please mark it helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 11:08 PM
Hi @Community Alums ,
Try to convert object to a string and then send to hermas
var payload = {
"parent": "",
"caused_by": "",
"u_outage_start_date": "",
"watch_list": ""
};
// Convert the JavaScript object to a JSON string
var jsonStringPayload = JSON.stringify(payload);
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 11:11 PM
Hi Anand,
but any reason why double quotes- may get removed at Hermes end?
Thanks,
Hrithik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 11:33 PM
Hi @Community Alums ,
Double quotes are seemingly removed from string values in JSON payloads, may be related to the way the payload is processed or interpreted at different stages of your integration flow to hermes.
Please mark it helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2023 04:41 AM
Thanks @Anand Kumar P