'Publish platform event with a rich text field that contains JSON
Platform events let's us add fields and then send data in those. My requirement is to send multiple contacts in each message that is published via platform events. I have created a list of wrapper class and then used JSON.serialize to convert it to a JSON string format. This is enabling me to create a JSON with multiple contact records. In the platform event I have a rich text field which is then storing the value of the JSON string formed. The issue observed is that the JSON inside the Rich text field of Platform event has backslash in it for every json key and value string quotation.
Could you help as to how me can remove this backslash and basically be able to send JSON within platform event fields.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
