Skip to main content
The Extract Keys command (Command Type: 1011) extracts the keys of objects from an array of child objects and returns them in a simplified format.

Overview

The Extract Keys command provides functionality for:
  • Extracting object keys from nested child arrays
  • Wrapping extracted keys under a specified property name
  • Simplifying complex nested structures

Command Type

Command Type ID: 1011

Parameters

ParameterTypeDescriptionRequired
childKeystringThe property name to use as a wrapper for the extracted keys in the outputYes

Usage Examples

Extract Keys from Children

{
  "command": "extract-keys",
  "params": {
    "childKey": "markets"
  }
}

Extract Keys with Custom Wrapper

{
  "command": "extract-keys",
  "params": {
    "childKey": "attributes"
  }
}

Common Use Cases

  • Structure Simplification: Flatten nested object key arrays into a simpler format
  • Key Discovery: Extract what keys are present in dynamic or schema-less child objects
  • Pipeline Preparation: Prepare key lists for downstream mapping or filtering