We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I was parsing a JSON document that had an extra comma, and when trying to clean it up it produced an infinite loop and threw a format error.
input = " {\"foo\":\"bar\",,}" JSONX.convert(input)
input = " {\"foo\":\"bar\",,}"
JSONX.convert(input)
throws
!! format error: object literal - expected colon (:) - rest is >>}<< !! format error: string literal - expected opening quote (") - rest is >>}<< !! format error: object literal - expected colon (:) - rest is >>}<< !! format error: string literal - expected opening quote (") - rest is >>}<< !! format error: object literal - expected colon (:) - rest is >>}<< !! format error: string literal - expected opening quote (") - rest is >>}<< !! format error: object literal - expected colon (:) - rest is >>}<< !! format error: string literal - expected opening quote (") - rest is >>}<< !! format error: object literal - expected colon (:) - rest is >>}<< !! format error: string literal - expected opening quote (") - rest is >>}<< !! format error: object literal - expected colon (:) - rest is >>}<< !! format error: string literal - expected opening quote (") - rest is >>}<< !! format error: object literal - expected colon (:) - rest is >>}<< !! format error: string literal - expected opening quote (") - rest is >>}<< !! format error: object literal - expected colon (:) - rest is >>}<< !! format error: string literal - expected opening quote (") - rest is >>}<< !! format error: object literal - expected colon (:) - rest is >>}<< !! format error: string literal - expected opening quote (") - rest is >>}<<``` endlessly.
The text was updated successfully, but these errors were encountered:
Thanks for trying and reporting. That's a bug.
Sorry, something went wrong.
Happens to me as well in SON.Parse for: '{ "mock": "text",}'
No branches or pull requests
I was parsing a JSON document that had an extra comma, and when trying to clean it up it produced an infinite loop and threw a format error.
input = " {\"foo\":\"bar\",,}"
JSONX.convert(input)
throws
The text was updated successfully, but these errors were encountered: