# Creating a JSON structure from an API response

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 &gt; 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.

   ![](https://help.qlik.com/talend/en-US/data-mapper-functions-reference-guide/Resources/images/create_json_structure_from_api_01_url.png)
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. ![](https://help.qlik.com/talend/en-US/data-mapper-functions-reference-guide/Resources/images/create_json_structure_from_api_02_structure.png)