Creating or transforming a JSON message by using a message map
You can use the Graphical Data Mapping editor to create or transform a JSON object message or a JSON array message. You can provide the model of your JSON message in a JSON schema file or a REST API swagger document or an OpenAPI 3.0 document. Alternatively, you can define your JSON data by using the Add User Defined function in the map.
About this task
When you create a message map, you can choose to provide the model of the JSON data from a JSON schema or REST API Swagger document or an OpenAPI 3.0 document in a supported project container. Alternatively, you can define your JSON data by using the Add User Defined function in the map, or an equivalent XML schema model.
When you work with a JSON model, you can use a JSON schema, a Swagger document, or an OpenAPI 3.0 document in either JSON or YAML format. You can also use the JSON elements and types to perform mapping casts. For more information, see Casting elements in a message map.
Procedure
Follow the steps in either of the following topics to create or transform a JSON message:
- Creating or transforming a JSON message by using a JSON schema
- Implementing a REST API operation by using a message map
- Creating or transforming a JSON output message by using the User Defined function to model the JSON data
- Modeling a JSON message for use in a message map by using an equivalent XML schema model