Example: Send a message using the JSON serializer
- Last Updated: December 22, 2021
- 1 minute read
- OpenEdge
- Version 13.0
- 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.
|