Skip to main content Skip to complementary content
Close announcements banner

Defining the properties of tHMap

Procedure

  1. Double-click the tHMap component to create a new map.
  2. In the tHMap Component Configuration dialog box that opens, select Generate hierarchical mapper structure based on the schema for the input structure, and then click Next.
    This means that Talend Data Mapper will automatically generate a structure for you, based on the schema of the input component (tRowGenerator in this case).
  3. For the output structure, select Select an existing hierarchical mapper structure, and then click Next.
  4. Select the JSON_structure structure that you created earlier, and then click Next and then Finish.
  5. In the Map editor that opens, drag row from Input (Map) to person in Output (JSON) to map each of the input elements to its corresponding output element.
  6. Double-click SimpleLoop in Loop tab and, in the properties box that opens, check Stream Input and then click OK.
  7. Press Ctrl+S to save your changes to the map.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!