Skip to main content
The JSON File Reader transforms raw JSON data into structured, usable objects within your automation workflows. With AI-powered analysis and intelligent type detection, it automatically understands your JSON structure and suggests appropriate field mappings for use in automation workflows.

Key Features

  • AI-Assisted Analysis – Analyzes JSON structure and suggests field types and mappings
  • Intelligent Type Detection – Recognizes dates, numbers, text, and boolean values automatically
  • Live Preview – See how your JSON will be parsed before saving your configuration
  • Multiple Input Sources – Works with API responses, file uploads, and direct JSON input

Supported JSON Formats

The JSON File Reader handles flat and nested objects, arrays, and mixed types—including API responses, configuration files, data exports, and webhook payloads. JSON can come from:
  • Text Value Reference – Direct input or paste
  • API Request Actions – Responses from external APIs
  • Data Transform Actions – Output from other automations
  • Record Triggers – JSON fields from record updates

Creating a JSON File Reader

1

Navigate to File Readers

In your application, go to File Readers section
2

Create New Reader

Click + File Reader and select JSON from the document type options
3

Configure Basic Settings

Name: Enter a descriptive name (e.g., “API Response Parser”)Description: Optional description for your team
4

Set Up JSON Analysis

The system analyzes your JSON and suggests field types and mappings, with a live preview of parsed data.
5

Test with Sample JSON

Use sample data to validate field extraction and type detection before saving.

Configuration Options

Field Type Mapping

The system automatically detects and maps field types:
  • Text (default for strings)
  • Date with format selection
  • DateTime with timezone support
  • Number for numeric strings
  • Decimal for precise calculations
  • Boolean for true/false values
  • Number (integer values)
  • Decimal (floating point, default for numbers)
  • Automatically detected and mapped as boolean type
  • Handles true/false, 1/0, and yes/no variations

Date Format Recognition

The system supports various date formats:
  • ISO 8601 standard formats
  • Common regional formats (MM/DD/YYYY, DD/MM/YYYY)
  • Custom format specification
  • Automatic timezone detection

Working with JSON Data

Simple JSON Objects

{
  "name": "John Doe",
  "age": 30,
  "active": true,
  "created_date": "2024-01-15T10:30:00Z"
}
Field types (Text, Number, Boolean, DateTime) are detected automatically from the structure.

JSON Arrays

{
  "cars": [
    {
      "name": "Model Y",
      "year": 2024,
      "electric": true
    }
  ]
}
Use Repeat For Each actions to iterate through JSON arrays. Configure the File Reader to parse the array, add the action, set the array field as the iteration source, then process items inside the loop.

Using in Automations

Use the JSON File Reader in automation workflows. Example flow:
API Response → JSON File Reader → Transform Data → Update Records → Generate Report

Common Automation Patterns

Trigger: API Request Action (JSON response) File Reader: Parse API response data Actions:
  • Transform Data to clean values
  • Create Record with parsed data
  • Update Record Fields with new information
  • Send Email Notification with results
Trigger: Webhook Received (JSON payload) File Reader: Extract webhook data Actions:
  • AI Classification to determine event type
  • Search Records to find related entries
  • Update Record Fields with webhook data
  • Post Comment with processing status
Trigger: File Upload (JSON config) File Reader: Parse configuration data Actions:
  • Transform Data to validate settings
  • Update Record Fields with configuration
  • Start Approval Process if required
  • Generate Report with config summary

File Reader Actions

  1. Create Action - Add a File Reader action to your automation
  2. Select Type - Choose your configured JSON File Reader
  3. Configure Input - Connect your JSON source
  4. Map Output - Use the parsed fields in subsequent actions

Best Practices

  • Data Validation – Validate critical fields before processing to prevent automation failures
  • Consistent Structure – Maintain consistent JSON structures across related automations for reliable processing
  • Type Accuracy – Choose appropriate field types during configuration to ensure accurate data handling
  • Testing – Test with sample data before deploying to production environments

Advanced Features

Nested Object Handling

The JSON File Reader handles complex nested structures:
{
  "user": {
    "profile": {
      "name": "John Doe",
      "preferences": {
        "theme": "dark",
        "notifications": true
      }
    }
  }
}
Access nested values using dot notation: user.profile.name. For varying JSON structures, you can use AI Classification to determine structure type before Dynamic Field Mapping and the JSON File Reader, so parsing adapts to the data format.

Error Handling and Troubleshooting

Common Issues

Symptoms: JSON parsing fails with syntax errorsCauses:
  • Missing brackets, quotes, or commas
  • Malformed JSON structure
  • Invalid characters in JSON
Solutions:
  • Check for syntax errors using JSON validators
  • Verify JSON structure matches expected format
  • Use Transform Data to clean JSON before parsing
  • Implement IF conditions to handle malformed data
Symptoms: Expected fields return null or empty valuesCauses:
  • Field names don’t match JSON keys (case-sensitive)
  • Optional fields missing in source JSON
  • Nested object path incorrect
Solutions:
  • Verify field names match exactly (case-sensitive)
  • Use Branch actions to handle optional fields
  • Check nested object paths and dot notation
  • Add default values for missing fields
Symptoms: Data type mismatches in automation actionsCauses:
  • Field types don’t match JSON data types
  • String values expected as numbers
  • Date format not recognized
Solutions:
  • Ensure field types match the actual data
  • Use Transform Data for type conversion
  • Configure date formats properly
  • Implement data validation steps

Validation Strategies

Validate critical JSON fields (e.g., with Branch actions) before processing to ensure data quality and prevent automation failures.
Use required-field checks, format validation (dates, numbers, emails), range checks for numbers, and pattern matching where the structure is predictable.

Performance Optimization

  • Map only the fields you need instead of parsing the full JSON.
  • Use appropriate field types and process large payloads in batches when possible.
  • For very large JSON, limit size or use streaming; clear variables after use.

Comparison with Other File Readers

When to Use JSON File Reader

Use the JSON File Reader for API responses, webhooks, configuration files, and other structured JSON. Consider alternatives when:

Next Steps

Automation System

Learn how to integrate JSON File Readers with automation workflows

AI Services

Enhance JSON processing with AI classification and analysis

Table File Reader

Process structured data from spreadsheets and CSV files

Elementum Intelligence Reader

Upgrade to AI-powered document analysis for complex data extraction