Skip to content

json::static: Improve handling of invalid JSON inputs - #2862

Open
xymus wants to merge 7 commits into
nitlang:masterfrom
xymus:json-errors
Open

json::static: Improve handling of invalid JSON inputs#2862
xymus wants to merge 7 commits into
nitlang:masterfrom
xymus:json-errors

Conversation

@xymus

@xymus xymus commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Improve the experience when parsing broken JSON strings with json::static.

  • Error messages are now more precise and show the line and column numbers.
  • Fix some errors that were instantiated but not passed up.
  • Minor clean up to the API and doc.

xymus added 7 commits August 29, 2026 13:59
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
The loop never advances `pos` but it has no callers anyway, let's remove
it.

Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
@github-actions

Copy link
Copy Markdown

Test Results

    67 files     317 suites   15m 0s ⏱️
14 236 tests 13 689 ✅ 547 💤 0 ❌
14 335 runs  13 772 ✅ 563 💤 0 ❌

Results for commit 179d9e5.

@xymus
xymus requested a review from privat September 1, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant