-
Notifications
You must be signed in to change notification settings - Fork 32
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
Failing to fix a json string containing parenthesis (
or )
#126
Comments
Another example:
Output:
|
Thanks for your input. Just curious: did you encounter this broken JSON in a real world example, or did you make it up? The limitation originates in the code that identifies the end of the string when the end quote is missing. It currently stops at the first next delimiter, including |
Via 58fe64c I've made the detection of MongoDB/JSONP function calls more robust. This solves the issue of The fix is not yet published. Repairing an unquoted string containing parenthesis would be a next step. |
Hi @josdejong , thank you for the quick response! I really like this tool. To answer your question: This is a real world example -- it is produced by an LLM(large language model) we trained, and I was trying to use |
Thanks, good to know. |
(
or )
The Problem
When I tried to use the library to fix the following string, it failed:
Input:
Output:
========================
However without the '(' or ')' char, it can produce a correct fix:
Input:
Output:
Is this behavior expected or it is a bug?
The text was updated successfully, but these errors were encountered: