gbowne1 / gbowne1/jsonify

[Bug] aggressive correctJson function

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.