Skip to content
UniKit

JSON Object to Array

Turn a JSON object into an array of its values, return arrays unchanged and wrap primitives in a single-element array. Nesting is preserved and parsing stays in your browser.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

JSON input

Objects lose their keys and contribute their values in order; an input array is returned unchanged, and primitives become a single-element array.

Array result

Only values survive; nesting is preserved. Integer-like keys are ordered numerically.

Paste JSON to see the array result

What this tool does

  • Turn an id-keyed JSON object into an array for iteration or a table component
  • Drop key names and keep only values when an API or script only accepts arrays

Example

Input

{"a":1,"b":2,"c":3}

Output

[
  1,
  2,
  3
]

Values follow the object key order; key names are discarded.

Frequently asked questions

Are key names kept?

No. Object values go into the array in order and the keys are dropped. Use the key/value extractor when you need the paths.

How is the order decided?

By JavaScript object key order: ordinary string keys keep their written order, while integer-like keys (such as "10") are moved to the front in numeric order.

What if the input is already an array?

It is returned unchanged (still serialised with the current indentation). Primitives such as numbers, strings and null become a single-element array.

Is nesting flattened?

No. Only the outermost key names disappear; nested objects and arrays stay exactly as they were.

Keywords:json object to arrayjson values array

Related tools