--- title: "JSON Serialization" slug: "json-serialization" tags: ["serialization", "JSON", "XML", "XSD"] updated: 2025-07-09T15:02:47Z published: 2025-07-09T15:02:47Z canonical: "documentation.decisions.com/json-serialization" --- > ## 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. # JSON Serialization | ## Step Details | | --- | | **Introduced in Version** | 3.2.0 | | **Last Modified in Version** | 8.9.0 | | **Location** | Data > JSON | The JSON Serialize step changes a data object into a JSON string via serialization. This step is best used to assist in utilizing modern REST web services to send or receive data. The object is chosen via the Type drop-down, where a user must pick the data type for the serialized object and the Object to Serialize input, where the user picks the specific object. --- ## Properties #### Parameters | Property | Description | Data Type | | --- | --- | --- | | Type | The data type that will be serialized can be a User Defined type or a default Decisions type. | --- | | Ignore Null | When enabled, any null values encountered in the data object will be ignored during serialization. Null properties will not be included in the resulting JSON string. | Boolean | | Is List | Changes the input to expect a list. | Boolean | | Indented | Applies indenting format to the output data to enhance readability. | Boolean | #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Object To Serialize | The input variable expects an object from the user-selected type. | --- | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | JsonSerialize1_Output | The default variable that stores the JSON serialized type. | String | | Error Message | Output variable for the step error message | String | ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2022-10-21_10h14_46.png) --- ## Example 1. In a Designer Project, click CREATE FLOW on the **Global Action Bar** and click **Flow**. Name the Flow and click CREATE. 2. Click and drag the **Fetch Entities** step to the workspace. Connect the step to the **Done** path of the **Start** step. Click the **Type Name** dropdown list under the ENTITY FETCH DEFINITION category on the **Properties** panel. Enter "account" in the search box and click **Account [DecisionsFramework..]**. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_11h14_17.png) 3. Click the **Results** path and navigate to **All All Steps [Catalog] > Data > Json**. Select the **Json Serialize** step and click ADD. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_11h15_55.png)To create an example with XML and XSD, add the Xml Serialize or the XSD serialize step and click on the Readable XML Output under the OPTIONS category. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_11h19_29.png) 4. In the **Type** dropdown box enter "account" and select Account [DecisionsFramwork]. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_11h20_54.png) 5. Click **Unknown** next to **Object to Serialize** field and select **Select From Flow**. Then, click **Entity Results [Account[]]** and select **Last [Account]**. Then, click DONE. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_11h21_40.png) 6. Connect the **Done**, **Error**, and **No Results** path to the **End** step. Click **Save** on the top action panel to save changes. ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-06-25_11h22_13.png) ## Debug 1. On the top action panel, click **Debug**. Then, click START DEBUGGING. 2. After the Debugger runs, click the Json Serialize 1 step, select **Execution 1**, and click **View Output Data**.The serialize step has changed the type into a JSON Serialized String Related Information Forum Posts: [Json Serialize](https://community.decisions.com/discussion/574/json-serialize) [Backslash (\) Included In JSON Serialize Output](https://community.decisions.com/discussion/10633/backslash-included-in-json-serialize-output)