Data Inspector icon

Data Inspector

Inspect and analyze workflow data structure

Analyze Structure

AI-generated

Overview

The Data Inspector node analyzes and inspects the structure of workflow data. It supports operations such as analyzing the data structure and types, counting total items and properties, extracting all unique keys from the data, and summarizing data types. This node is useful for understanding the composition and characteristics of data passing through a workflow, helping users to debug, validate, or document data formats.

Use Case Examples

  1. Analyze the structure of incoming JSON data to identify property names and types for each item.
  2. Count the total number of items and properties in a dataset to get an overview of data volume and complexity.
  3. Extract all unique keys from a dataset to understand the variety of properties present across items.
  4. Summarize the types of data properties to detect dominant types and type distributions for each property.

Properties

Name Meaning
Operation Specifies the type of analysis to perform on the input data. Options include analyzing structure, counting items, extracting keys, and summarizing types.

Output

JSON

  • totalItems - Total number of input items.
  • structure
    • ``
      * itemIndex - Index of the item in the input array.
      * properties - List of property names in the item.
      * propertyCount - Number of properties in the item.
      * types - Data types of each property in the item.
  • totalProperties - Total number of properties across all items.
  • averagePropertiesPerItem - Average number of properties per item.
  • uniqueKeys - List of all unique keys found in the input data.
  • totalUniqueKeys - Count of unique keys.
  • keyFrequency - Frequency of each key across all items.
  • propertyTypes - Object mapping each property to counts of its data types.
  • summary
    • ``
      * property - Property name.
      * dominantType - Most common data type for the property.
      * typeDistribution - Distribution of data types for the property.

Troubleshooting

  • Ensure the input data is an array of JSON objects; otherwise, the analysis may not work correctly.
  • If the node returns empty or unexpected results, verify that the input data is correctly passed and contains JSON objects.
  • For large datasets, some operations like extracting keys or type summaries may take longer to process.

Discussion