Data Inspector icon

Data Inspector

Inspect and analyze workflow data structure

Type Summary

AI-generated

Overview

The Data Inspector node analyzes and summarizes the structure and types of data items passing through a workflow. It supports operations like analyzing data structure, counting items and properties, extracting unique keys, and summarizing data types. This node is useful for understanding the shape and composition of data, debugging workflows, and preparing data for further processing.

Use Case Examples

  1. Analyzing the structure of JSON data to understand its properties and types.
  2. Counting the total number of items and properties in a dataset to gauge its size.
  3. Extracting all unique keys from a collection of JSON objects to identify common and uncommon fields.
  4. Summarizing the data types of properties across multiple items to detect inconsistencies or dominant types.

Properties

Name Meaning
Operation Specifies the type of analysis to perform on the input data. Options include Analyze Structure, Count Items, Extract Keys, and Type Summary.

Output

JSON

  • totalItems - Total number of input items processed.
  • structure - Array describing each item's properties, property count, and types (for Analyze Structure operation).
  • totalProperties - Total count of all properties across all items (for Count Items operation).
  • averagePropertiesPerItem - Average number of properties per item (for Count Items operation).
  • uniqueKeys - Sorted list of all unique keys found in the input data (for Extract Keys operation).
  • totalUniqueKeys - Count of unique keys found (for Extract Keys operation).
  • keyFrequency - Frequency count of each key across all items (for Extract Keys operation).
  • propertyTypes - Object mapping each property to counts of its data types (for Type Summary operation).
  • summary - Array summarizing each property's dominant type and type distribution (for Type Summary operation).

Troubleshooting

  • Ensure the input data is in JSON format as expected by the node.
  • If the node returns empty or unexpected results, verify that the input items contain properties to analyze.
  • For the Type Summary operation, arrays are identified distinctly as 'array' type; other types follow JavaScript typeof results.

Discussion