Skip to content

Skip JSONC comments in JSONTokener - #2

Draft
piexelated wants to merge 1 commit into
masterfrom
feat/json-comments
Draft

piexelated wants to merge 1 commit into
masterfrom
feat/json-comments

Conversation

@piexelated

@piexelated piexelated commented Nov 14, 2026 •

Copy link
Copy Markdown

JSONTokener now skips // line comments and /* */ block comments wherever it skips whitespace. In other words it wont fuck itself when encountering a comment.

Tested with ./gradlew :shared:test: 1529 tests, 0 failures, 5 skipped. That includes the new JSONCommentTest.

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