Configuring a JSON Tree - 6.3

Talend Components Reference Guide

EnrichVersion
6.3
EnrichProdName
Talend Big Data
Talend Big Data Platform
Talend Data Fabric
Talend Data Integration
Talend Data Management Platform
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for Big Data
Talend Open Studio for Data Integration
Talend Open Studio for Data Quality
Talend Open Studio for ESB
Talend Open Studio for MDM
Talend Real-Time Big Data Platform
task
Data Governance
Data Quality and Preparation
Design and Development
EnrichPlatform
Talend Studio

When configuring a JSON tree, the default type of an element is string. If an element is not of type string, you need to add an attribute for the element to set its type.

  • For an integer, double, float, or boolean element, you need to add an attribute named type and set its static value to integer, number, float, or boolean respectively.

  • For an array element, you need to add an attribute named class and set its static value to array, and then add a sub-element named element set as a loop.

  • For an object element, you need to add an attribute named class and set its static value to object.

The following figure shows an example of JSON tree configuration: