Skip to content

feat: add Json::version() to expose runtime version (#1531)#1678

Merged
baylesj merged 2 commits intomasterfrom
add-runtime-version
Apr 9, 2026
Merged

feat: add Json::version() to expose runtime version (#1531)#1678
baylesj merged 2 commits intomasterfrom
add-runtime-version

Conversation

@baylesj
Copy link
Copy Markdown
Contributor

@baylesj baylesj commented Apr 9, 2026

This adds a runtime function Json::version() that returns the JSONCPP_VERSION_STRING.

This allows a program using jsoncpp to display the version information of the runtime linked shared library, or check at runtime that the version of the shared library is compatible with what the program expects.

Fixes #1531

baylesj and others added 2 commits April 9, 2026 11:29
This adds a runtime function `Json::version()` that returns the `JSONCPP_VERSION_STRING`.

This allows a program using jsoncpp to display the version information of the runtime linked shared library, or check at runtime that the version of the shared library is compatible with what the program expects.

Fixes #1531
@coveralls
Copy link
Copy Markdown

Coverage Report for CI Build 24207029912

Coverage increased (+0.002%) to 90.095%

Details

  • Coverage increased (+0.002%) from the base build.
  • Patch coverage: 1 of 1 lines across 1 file are fully covered (100%).
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 2692
Covered Lines: 2575
Line Coverage: 95.65%
Relevant Branches: 2588
Covered Branches: 2182
Branch Coverage: 84.31%
Branches in Coverage %: Yes
Coverage Strength: 23730.51 hits per line

💛 - Coveralls

@baylesj baylesj merged commit 941802d into master Apr 9, 2026
36 checks passed
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.

add a runtime API for version information

2 participants