Example: Send a message using the JSON serializer
- Last Updated: January 17, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
You can use the JSON serializer to send messages that contains JSON data. This
serializer takes Progress.Json.ObjectModel.JsonObject
objects and converts them to bytes. The basic steps are:
- Configure the
JsonSerializerfor the producer builder. - Create a new JSON object for the message body.
- Add JSON names-value pairs to the message body.
This example shows how to set the JSON serializer and send an Apache® Kafka® message in the JSON format.
|