-
Notifications
You must be signed in to change notification settings - Fork 44.6k
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 JSON string escaping issue #72
Fix JSON string escaping issue #72
Conversation
Fixes an issue where double quotes were not being escaped in JSON strings, causing parse errors.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice quick fix! 👍
fix by converting to valid null value for JSON
consistent escaping
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this should be better documented. The current problem happens because of GPT behavior and may not be needed anymore when OpenAI improves the model or when someone improves the prompt. The PR is a clear improvement though.
Resolve the conflicts. |
While this does require a benchmark for definitive proof, It looks good and I'm happy to merge it. I'm way too tired to be trusted with that merge conflict right now however, so I'll get to this in the morning. |
@PhilipAD There are conflicts again |
Fixes an issue where double quotes were not being escaped in JSON strings, causing parse errors.