Skip to content
The AI Automators
  • Community & Courses
  • Contact
  • Login
  • YouTube

How to Fix JSON Errors in Make.com (Escaping JSON, Validating, Hidden Characters)

January 14, 2025 by Alan Walsh

Resolving JSON errors in automation workflows is crucial for maintaining reliable operations, particularly when dealing with dynamic data sources and API integrations. This guide demonstrates practical solutions for common JSON-related issues such as “Bad Request body,” “Validate input JSON,” and “Unprocessable Entity” errors within Make.com automations.

Understanding how to properly format and escape JSON data can save hours of troubleshooting time and ensure your automations run smoothly without interruption.

In my recent video, I demonstrate several effective methods for handling JSON errors and provide practical solutions for common scenarios:

Understanding JSON Validation

One of the most straightforward approaches to identifying JSON errors is using a JSON validator like JSONLint. These tools can quickly identify hidden characters and formatting issues that might not be visible to the naked eye, helping to resolve “validate input JSON” errors commonly encountered in Apify actors and similar modules.

Handling Dynamic Data

When working with dynamic data from sources like Google Sheets or Airtable, special characters can often break JSON structures. This is particularly common when dealing with generated text from services like OpenAI or Cloud AI, where quotation marks and other special characters may interfere with the JSON structure.

JSON Escaping Formula

To handle special characters effectively, you can use this escaping formula in Make.com:

{{replace(replace(replace(replace(replace(replace(replace(YOUR_DATA; "/\n/g"; space); "/\r/g"; space); "/\t/g"; space); "/\f/g"; space); "/\//g"; "/"); "/\\/g"; "\\"); "/""/g"; "\"")}}

Implementation Tips

When implementing these solutions, simply replace “YOUR_DATA” in the formula with your dynamic field reference. The formula automatically handles the escaping of special characters, ensuring your JSON remains valid regardless of the input data’s content.

Additional Resources

For more complex scenarios involving multiple JSON lines or advanced automation needs, the AI Automators community provides access to comprehensive templates, courses, and live workshop support to enhance your automation capabilities.

Categories Make.com

Keep reading

NEW Make.com MCP Update: Connect Anything in Minutes! (No-Code)

May 11, 2025 by Alan Walsh

In my latest exploration of Make.com, I focused on its exciting new feature, the Model Context Protocol (MCP). This enables users to connect external agents, such as Claude Desktop, directly to their Make.com accounts. The beauty of this feature lies in its ability to let these agents discover, understand, and execute scenarios without requiring complex … Read more

Categories Make.com

How to Bulk Add Rows to Google Sheets with Make.com

April 30, 2025 by Alan Walsh

In this guide, I’ll show you how to efficiently bulk add rows to Google Sheets using Make.com. This method not only streamlines your workflow but also saves on operations, making it a smart choice for handling large datasets. Introduction to Bulk Adding Rows Bulk adding rows in Google Sheets can transform your data management. Instead … Read more

Categories Make.com

Understanding Bundles, Arrays & Collections in Make.com

April 28, 2025 by Alan Walsh

In this blog, I’m diving into the essential data structures of Make.com: bundles, arrays, and collections. These concepts are crucial for creating more sophisticated automation scenarios, and I aim to make them practical and easy to understand. Overview of Data Structures Understanding data structures is fundamental in automation. Within Make.com, bundles, collections, and arrays serve … Read more

Categories Make.com
Community Contact BLOG member login

© 2026 - The AI Automators® is a registered business name of LogicLabs Digital Limited | Privacy Policy

Not ready to join yet? You can still stay up to date!

Subscribe to our newsletter to get actionable guides, tips, and the latest AI news by email.

    We won't send you spam. Unsubscribe at any time.