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. |
||
|---|---|---|
| .. | ||
| HTTP.ts | ||