• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

open-source-parsers / jsoncpp / 27673820998
90%
master: 90%

Build:
Build:
LAST BUILD BRANCH: refs/pull/1698/merge
DEFAULT BRANCH: master
Ran 17 Jun 2026 07:46AM UTC
Jobs 1
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

17 Jun 2026 07:45AM UTC coverage: 89.894% (-0.07%) from 89.959%
27673820998

Pull #1696

github

baylesj
fix: allow a comment between a trailing comma and ']' (#1500)

Trailing commas and comments are both allowed by default, but they did
not compose inside arrays: readArray detected a trailing-comma ']' with a
raw `*current_ == ']'` peek that skipped only whitespace, not comments.
So `[1, 2, /* c */]` left current_ at the comment, the peek failed, and
the parser tried to read another value -- which hit ']' and reported
"value, object or array expected". readObject already handled this via
readTokenSkippingComments.

Add skipCommentTokens() (skip whitespace and comments, leaving current_
at the next significant character) and use it in readArray before the
']' check. Consumed comments stay in commentsBefore_, so a comment before
a real element is still attached to it; if the array ends, they are
simply not attached -- matching object behavior.

Adds CharReaderTest/parseTrailingCommaWithComment covering line/block
comments after a trailing comma, an empty array containing only a
comment, the object form, and that a comment before a real element is
still attached.
Pull Request #1696: fix: allow a comment between a trailing comma and ']' (#1500)

2209 of 2626 branches covered (84.12%)

Branch coverage included in aggregate %.

13 of 14 new or added lines in 1 file covered. (92.86%)

56 existing lines in 2 files now uncovered.

2612 of 2737 relevant lines covered (95.43%)

23455.69 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
89.88
-0.14% src/lib_json/json_reader.cpp

Coverage Regressions

Lines Coverage ∆ File
40
89.88
-0.14% src/lib_json/json_reader.cpp
16
87.35
-0.02% src/lib_json/json_value.cpp
Jobs
ID Job ID Ran Files Coverage
1 27673820998.1 17 Jun 2026 07:46AM UTC 8
89.89
GitHub Action Run
Source Files on build 27673820998
  • Tree
  • List 8
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #1696
  • PR Base - master (#27653893209)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc