Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for JSON mistakes by claude #953

Merged
merged 1 commit into from
Jan 29, 2025
Merged

Fix for JSON mistakes by claude #953

merged 1 commit into from
Jan 29, 2025

Conversation

rajasbansal
Copy link
Contributor

Sometimes, Claude returns unescaped \n inside the quoted values of a json response. This PR finds the JSON string and replaces all the \n with \n only within quotes, leaving other \n untouched.

@rajasbansal rajasbansal requested review from tuxracer and nihit January 28, 2025 23:10
@rajasbansal rajasbansal self-assigned this Jan 29, 2025
@rajasbansal rajasbansal merged commit 602c2e1 into main Jan 29, 2025
1 of 2 checks passed
@rajasbansal rajasbansal deleted the claude_json branch January 29, 2025 20:19
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.

3 participants