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

open-source-parsers / jsoncpp / 27674127411
90%

Build:
DEFAULT BRANCH: master
Ran 17 Jun 2026 07:52AM 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:51AM UTC coverage: 89.903% (-0.06%) from 89.959%
27674127411

push

github

web-flow
fix: allow a comment between a trailing comma and ']' (#1500) (#1696)

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.

2220 of 2638 branches covered (84.15%)

Branch coverage included in aggregate %.

8 of 9 new or added lines in 1 file covered. (88.89%)

2615 of 2740 relevant lines covered (95.44%)

23827.05 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
89.88
-0.14% src/lib_json/json_reader.cpp
Jobs
ID Job ID Ran Files Coverage
1 27674127411.1 17 Jun 2026 07:52AM UTC 8
89.9
GitHub Action Run
Source Files on build 27674127411
  • Tree
  • List 8
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 22c7ec3a on github
  • Prev Build on master (#27653893209)
  • Next Build on master (#27674927749)
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