---
title: "Creating From JSON"
slug: "creating-from-json"
updated: 2024-07-30T13:42:29Z
published: 2024-07-30T13:42:29Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Creating Types From JSON

## Overview

Users can create new datatypes from JSON formatted objects. The properties of the JSON object will be used to create the fields for the new datatype.

If the inputted JSON object contains nested objects, then datatypes for the nested objects will also be generated.

The below section provides an example of creating a new datatype using a JSON object.

---

1. Select CREATE DATATYPES/INTEGRATION in a Designer Project from the top action bar.
2. In the **Create DataTypes/Integration** window, select**XML/JSON/CSV**from the right column, then select **Create Types from JSON**.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-07-30_09h34_24.png)
3. From here, the Edit JSON Structure page will appear. Below is a table that covers the input fields for the new datatype. 

| Property | Description |
| --- | --- |
| Json Structure Name | The name of the datatype |
| NameSpace | The namespace for the datatype |
| Allow Nullable Values | An optional setting that when enabled, allows fields to have null values |
| Use JSON File | An optional setting that allows a JSON file to be uploaded and used as the template for the new datatype. |
| Json Structure | A field where the datatype can be copied into Decisions. The structure being added here must be a valid JSON formatted object. |
4. Once the structure is configured correctly, click **Save Structure**. A new Simple Flow structure will be created with the **Json Structure Name.**

---

## Making changes to the JSON structure

Users can update the generated datatype if changes to the JSON structure need to be made.

1. Right click the JSONDataStructure within the Project.
2. Select **Edit**
3. The Edit JSON Structure page should open. From here, the JSON used to generate the structure can be updated.![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2024-07-30_09h41_25.png)
4. Below is a list of properties available when editing a JSON structure. 

| Property | Description |
| --- | --- |
| Json Structure Name | The name of the datatype |
| NameSpace | The namespace for the datatype |
| Allow Nullable Values | An optional setting that when enabled, allows fields to have null values |
| Use JSON File | An optional setting that allows a JSON file to be uploaded and used as the template for the new datatype. |
| Json Structure | A field where the datatype can be copied into Decisions. The structure being added here must be a valid JSON formatted object. |
| Select DataTypes to Generate Steps For | If checked, a Serialize and Deserialize JSON step specific to the datatype will be generated. The steps can be found under USER DEFINED TYPES > JSON STRUCTURES > [DataStructureName] |
| Generated Datatypes | A list of generated datatypes that were created based on the inputted JSON. |
