---
title: "Create Object / Array"
description: "Build a nested object or list from a JSON-shaped config."
canonical_url: "https://docs.vettero.com/build/workflows/blocks/data-ops/create-object"
---
# Create Object / Array

> Build a nested object or list from a JSON-shaped config.

<block-meta block="Yes" channels="Any" folder="basic/data-ops" group="Data Operations" groupTo="/build/workflows/blocks/data-ops" icon="i-lucide-box" pipe="Value" scope="Any" tool="No" type="data-ops.create-object">



</block-meta>

**Create Object / Array** (palette name **Create Object / Array**) builds a nested object or list in the inspector. Each leaf can be a fixed value or a context path. The resolved structure is written to the data pipe.

Optionally set **Store as** to also save the same value as a named variable in the **current** (local) scope, like [Set](https://docs.vettero.com/build/workflows/blocks/context/set). Downstream blocks can bind that name directly.

Use [Object](https://docs.vettero.com/build/workflows/blocks/data-ops/object) when you already have an object and need get, set, merge, or pick. Use [Array](https://docs.vettero.com/build/workflows/blocks/data-ops/array) when you already have a list.

## Configure

<table>
<thead>
  <tr>
    <th>
      Setting
    </th>
    
    <th>
      Description
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        Store as (optional)
      </strong>
    </td>
    
    <td>
      Context variable name. Leave empty to only use the data pipe. Same naming rules as <a href="https://docs.vettero.com/build/workflows/blocks/context/set">
        Set
      </a>
      
      .
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Object or array
      </strong>
    </td>
    
    <td>
      Nested object or list. Leaves are literals or variable bindings
    </td>
  </tr>
</tbody>
</table>

## Handles

<table>
<thead>
  <tr>
    <th>
      Handle
    </th>
    
    <th>
      Role
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <strong>
        In
      </strong>
      
       (target)
    </td>
    
    <td>
      Incoming connection
    </td>
  </tr>
  
  <tr>
    <td>
      <strong>
        Out
      </strong>
      
       (source)
    </td>
    
    <td>
      Continues after the structure is built
    </td>
  </tr>
</tbody>
</table>

## Pipe schema

The next block reads this on the data pipe (`pipe.value`). The shape matches the tree you configured (object or list, with nested keys as you defined them).

If **Store as** is set, the same value is also available under that name in the current scope.

## Use case

- Assemble an [API](https://docs.vettero.com/build/workflows/blocks/utility/api) request body from `args` and earlier blocks.
- Build a row object whose keys match a [table](https://docs.vettero.com/data/tables) before [Table Insert](https://docs.vettero.com/build/workflows/blocks/table/insert). Keys are case-sensitive.

<block-page-nav>



</block-page-nav>


## Sitemap

See the full [sitemap](https://docs.vettero.com/sitemap.md) for all pages.
