# Configuring a JSON Tree

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:

![](https://help.qlik.com/talend/en-US/components/7.3/Resources/images/components-twritejsonfield_configurejsontree.png)