Configuring the components - Cloud - 8.0

JSON processing (Mediation)

Version
Cloud
8.0
Language
English
Product
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Data Governance > Third-party systems > Processing components (Mediation) > JSON processing components (Mediation)
Data Quality and Preparation > Third-party systems > Processing components (Mediation) > JSON processing components (Mediation)
Design and Development > Third-party systems > Processing components (Mediation) > JSON processing components (Mediation)
Last publication date
2024-02-21

Procedure

  1. Double-click the cTimer component to display its Basic settings view in the Component tab.
  2. In the Repeat field, enter 1 to trigger a message. Keep the default settings of the other options.
  3. Double-click the cSetBody component to display its Basic settings view in the Component tab.
  4. Select Constant in the Language list and enter the JSON string "{\"firstName\": \"Mike\", \"lastName\": \"Jonson\", \"age\": 74, \"job\": \"artist\" }" in the Expression field.
  5. Double-click the cJsonParser component to display its Basic settings view in the Component tab.
  6. Select Gson in the JSON Library list and enter java.util.Map.class in the Mapping Class field to parse the JSON string into a Java map.
  7. Double-click a cLog component to display its Basic settings view in the Component tab.
  8. Configure the properties as follows:
    1. Select the Format the log output option.
    2. In the Arguments table, click [+] to add a row. Enter "multiline" in the Name field and true in the value field.
    3. Keep the default settings of the other options.
  9. Repeat this step to configure the other cLog component in the same way.
  10. Double-click the cJsonWriter component to display its Basic settings view in the Component tab.
  11. In the JSON Library list, select Jackson to write the Java map into JSON using the Jackson library.
  12. Press Ctrl+S to save your Route.