Creating a JSON structure from an API response - 7.3

Talend Data Mapper Functions Reference Guide

Version
7.3
Language
English
Product
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
Module
Talend Studio
Content
Design and Development > Designing Jobs
Last publication date
2023-01-05

Create the JSON structure needed for your map using the API request URL.

Procedure

  1. In the Data Mapper tab, expand the Hierarchical Mapper node and right-click Structures.
  2. Click New > Structure.
  3. In the wizard that opens, select Import a structure definition and click Next.
  4. Select the JSON Sample Document and click Next.
  5. Select URL and enter the following URL: https://www.swapi.tech/api/people, then click Next.
  6. Keep the default encoding and click Next.
  7. Select a folder and enter a name for your structure, then click Next.
  8. Click Finish.

Results

Your structure is created based on the content of the API response.