[Bug] aggressive correctJson function
Open
bug
documentation
enhancement
good first issue
help wanted
question
- Dominant language
- C++
- Stars
- 4
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
The current correctJson function in jsonparser.cpp is very aggressive. It adds a comma after every closing } or ] if it doesn't see a separator. This will likely break valid JSON (e.g., adding a comma after the very last closing brace of the file).
Use a more robust state-based approach or, better yet, allow the JsonParser to collect errors and only suggest fixes during the lint phase.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.