Skip to content

Conversation

@HenryHengZJ
Copy link
Contributor

  • Introduced sanitizeJsonString to clean problematic escape sequences and fix common JSON formatting issues.
  • Added parseJsonBody to attempt parsing JSON directly, with fallback to sanitization if parsing fails, providing clearer error messages for invalid JSON.
  • Updated request handling to utilize the new parsing method for JSON and x-www-form-urlencoded body types.

…low.

- Introduced `sanitizeJsonString` to clean problematic escape sequences and fix common JSON formatting issues.
- Added `parseJsonBody` to attempt parsing JSON directly, with fallback to sanitization if parsing fails, providing clearer error messages for invalid JSON.
- Updated request handling to utilize the new parsing method for JSON and x-www-form-urlencoded body types.
@HenryHengZJ HenryHengZJ merged commit 035b555 into main Jun 20, 2025
2 checks passed
kivilaid pushed a commit to kivilaid/Flowise that referenced this pull request Jun 22, 2025
Enhancement: Add JSON sanitization and parsing methods to HTTP agentflow.

- Introduced `sanitizeJsonString` to clean problematic escape sequences and fix common JSON formatting issues.
- Added `parseJsonBody` to attempt parsing JSON directly, with fallback to sanitization if parsing fails, providing clearer error messages for invalid JSON.
- Updated request handling to utilize the new parsing method for JSON and x-www-form-urlencoded body types.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants