Back to Data Converters

JSON to Array

Extract keys, values, entries, or flatten JSON objects into arrays

JSON Input

What is JSON to Array?

This tool converts JSON objects into JavaScript arrays. You can extract just the keys, just the values, key-value pairs as entries, or flatten deeply nested objects into a single-level structure.

Conversion Modes

Keys

Extract all property names from the JSON object as an array of strings.

Values

Extract all values, discarding the keys.

Entries

Get [key, value] pairs as a 2D array. Useful for iteration.

Flatten

Flatten nested objects using dot-notation keys (e.g., "address.city").