Question

13
Views
Marc de Boer (Marcd559)
KPN

KPN
NL
Marcd559 Member since 2015 4 posts
KPN
Posted: June 18, 2021
Last activity: June 18, 2021
Posted: 18 Jun 2021 6:36 EDT
Last activity: 18 Jun 2021 6:58 EDT

Kafka message has single quotes around it causing a JSON parse exception

Hi all,

I have created a Kafka dataset and connected this to our Kafka Broker.

Now when I browse the topic I get the error as displayed below. So the message that is read has been put between single quotes, and as a consequence the JSON parser throws an exception. How can I remove that single quote from the message? Or do I need to create a custom parser for it (hopefully not because the rest of the message is valid JSON)

Caused by: com.fasterxml.jackson.core.JsonParseException: Property for token '{"offer_id": 12345, "name": "Go-15DAYS"}' is unknown   at [Source: (com.pega.dsm.dnode.util.ClipboardPageJsonConverter$ByteBufferInputStream); line: 1, column: 59] 

Kind regards

Marc  

***Edited by Moderator: Pooja Gadige to add platform capability tag***
Pega Platform Decision Management Technology Services System Architect