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

nlohmann / json / 37231157998
99%

Build:
DEFAULT BRANCH: develop
Ran 05 Oct 2026 08:10AM UTC
Jobs 1
Files 36
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

04 Oct 2026 08:11PM UTC coverage: 98.591% (-0.1%) from 98.737%
37231157998

push

github

web-flow
Add JSON_DELETE_DEPRECATED_FUNCTIONS to delete the deprecated functions (#5755)

* Add JSON_DELETE_DEPRECATED_FUNCTIONS to delete the deprecated functions

Defining JSON_DELETE_DEPRECATED_FUNCTIONS to 1 (or the CMake option
JSON_DeleteDeprecatedFunctions) declares every deprecated function as
deleted instead of deprecated, so that code that is not ready for 4.0.0
no longer compiles. A deleted function still takes part in overload
resolution, so from_*(ptr, len) cannot silently bind len to the strict
parameter of from_*(InputType&&, bool); the roadmap now plans to keep
these overloads deleted in 4.0.0 instead of removing them.

The legacy discarded-value comparison is left to its own macro.

Also update the 4.0 roadmap: add JSON_DISABLE_TUPLE_REFERENCE_CONVERSION
and JSON_DELETE_DEPRECATED_FUNCTIONS to the macro table, add the
from_bjdata/from_bon8 (ptr, len) overloads to the deprecated functions,
document the macro in the migration guide, and fix the docs style check
findings (example titles, missing docset entry for JSON_STRICT_BINARY_UTF8).

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

* Declare each deprecated function once and guard only its body

Instead of repeating every deprecated declaration in an
#if JSON_DELETE_DEPRECATED_FUNCTIONS branch, keep one declaration
(with its deprecation attribute) and switch only between "= delete;"
and the function body. Suggested by @gregmarr in the review.

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

---------

Signed-off-by: Niels Lohmann <mail@nlohmann.me>

2942 of 3077 branches covered (95.61%)

8539 of 8661 relevant lines covered (98.59%)

12703044.77 hits per line

Coverage Regressions

Lines Coverage ∆ File
55
97.18
-0.34% include/nlohmann/json.hpp
26
98.27
0.09% include/nlohmann/detail/input/binary_reader.hpp
8
90.48
-5.44% include/nlohmann/detail/string_utils.hpp
3
99.39
-0.15% include/nlohmann/detail/input/lexer.hpp
3
99.44
-0.37% include/nlohmann/detail/output/serializer.hpp
2
94.59
0.0% include/nlohmann/detail/meta/type_traits.hpp
1
99.68
-0.01% include/nlohmann/detail/json_pointer.hpp
1
99.9
0.0% include/nlohmann/detail/output/binary_writer.hpp
1
96.88
0.0% include/nlohmann/detail/string_concat.hpp
Jobs
ID Job ID Ran Files Coverage
1 37231157998.1 05 Oct 2026 08:10AM UTC 36
98.59
GitHub Action Run
Source Files on build 37231157998
  • Tree
  • List 36
  • Changed 15
  • Source Changed 15
  • Coverage Changed 15
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #37231157998
  • 23d3b373 on github
  • Prev Build on develop (#37026859850)
  • Next Build on develop (#37530611400)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc