---
sourceDocument: Yokohama Data and Automation
sourceDocumentLink: https://www.servicenow.com/docs/r/yokohama/integrate-applications

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama Data and Automation

ft:clusterId :

    - crint

bundleId :

    - crint

workflow :

    - Creator


---

# Use the JsonArrayToArray component

# Use the JsonArrayToArray component {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Convert a JSON object to an array of objects using the JsonArrayToArray component in
the RPA Desktop Design Studio.

## Before you begin

Role required: none

## About this task

To configure the properties for the JsonArrayToArray component, see [Properties of the JSON utilities](https://www.servicenow.com/docs/bOHwyOAIysqJ49YDcai2BA "Learn about the properties of the JSON utilities in RPA Desktop Design Studio.").

## Procedure

1. In the Toolbox pane, navigate to UtilitiesJSON.
2. Drag the JsonArrayToArray component to the Design surface.
3. In the Toolbox pane, navigate to GeneralVariable.
4. Drag the Variable component to the Design surface.
5. Double-click the variable and enter a script.  
   An example of a script.


       [{

         "name": "Abel Tutor",

         "age": 30,

         "email": "abletutor@example.com",

       },

       {

         "name": "Alex Tutor",

         "age": 32,

         "email": "alextutor@example.com",

       }]
        
6. To configure the input field, see [Configure port properties](https://www.servicenow.com/docs/d92L75lHSFmmidzeOPPgTw "Configure how data is passed to the input fields of a component or method in RPA Desktop Design Studio.").
7. **Optional:** Connect the data and control ports of the JsonArrayToArray component to the corresponding ports of the other components as described in the following table and image.  
   {#use-utilities-json-jsonArrayToArray__table_jnw_jn1_krb__entry__4}

   | Port type | Port name | Data type | Description |
   |-|-|-|-|
   | Data In | JsonObject | Object | The JSON object to be converted to an array of objects. |
   | Data Out | Return | Object\[\] | Used to return an array of JObjects. Each JObject has the same set of properties with different values for each property. To modify the details of a JObject, iterate over the JObjects in the array returned until the criteria is met. |
   [ ]

   {#use-utilities-json-jsonArrayToArray__table_jnw_jn1_krb} Figure 1. JsonArrayToArray component with Variable component
8. **Optional:** To test the component, right-click the component bar and then click Run From Here.
9. To view the complete data output, right-click the Data port of JsonArrayToArray component and select Preview Data.
{#use-utilities-json-jsonArrayToArray__steps_pgb_vjf_ggc}

## JsonArrayToArray component with Variable component {#use-utilities-json-jsonArrayToArray__example_jnk_53f_ggc}

*[\>]: and then


