# nlohmann/json SLOC report

> As of 2026-09-08 (commit 7b2d73cf2e44), nlohmann/json contains 63,626 total lines: 40,672 code, 15,310 comments, 7,644 blank, across 94 files in 14 languages (top: C++ Header 94.2%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

nlohmann/json has 40,672 source lines of code out of 63,626 total lines across 94 files, counted from the 7b2d73cf2e443adbe7903754f912ed95b42504f1 ref at commit 7b2d73cf2e44 by the OctoCounts tokei engine on 2026-09-08. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving nlohmann/json to commit 7b2d73cf2e44, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 63.9% of all lines, comments represent 24.1%, and the repository averages 433 code lines per file. C++ Header accounts for 94.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ Header | 49 | 54,257 | 38,330 | 9,648 | 6,279 |
| CMake | 8 | 1,830 | 1,339 | 284 | 207 |
| Python | 4 | 791 | 568 | 99 | 124 |
| Makefile | 1 | 266 | 148 | 62 | 56 |
| Bazel | 2 | 87 | 81 | 0 | 6 |
| C++ | 2 | 74 | 57 | 6 | 11 |
| Jinja2 | 1 | 40 | 36 | 0 | 4 |
| Autoconf | 3 | 42 | 33 | 4 | 5 |
| C++ Module | 1 | 52 | 26 | 17 | 9 |
| Meson | 1 | 24 | 20 | 0 | 4 |
| Swift | 1 | 22 | 18 | 2 | 2 |
| JSON | 2 | 16 | 16 | 0 | 0 |

Top language (C++ Header 94.2%). Generated at 2026-09-08T03:41:56.811200468+00:00. Canonical report: https://octocounts.com/github/nlohmann/json

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/nlohmann/json/commit/7b2d73cf2e443adbe7903754f912ed95b42504f1?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does nlohmann/json have?

nlohmann/json has 63,626 total lines, including 40,672 code lines, 15,310 comment lines, and 7,644 blank lines.

### How was the nlohmann/json line count measured?

OctoCounts resolved the public GitHub repository to commit 7b2d73cf2e44, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for nlohmann/json?

This OctoCounts report was generated from 7b2d73cf2e443adbe7903754f912ed95b42504f1 at commit 7b2d73cf2e44 on 2026-09-08T03:41:56.811200468+00:00.

## Similar repository reports

- [xtensor-stack/xtensor](https://octocounts.com/github/xtensor-stack/xtensor) — C++ Header, 41,480 code lines
- [axstin/rbxfpsunlocker](https://octocounts.com/github/axstin/rbxfpsunlocker) — C++ Header, 36,768 code lines
- [bytedance/flux](https://octocounts.com/github/bytedance/flux) — C++ Header, 53,975 code lines
- [mit-acl/clear](https://octocounts.com/github/mit-acl/clear) — C++ Header, 23,480 code lines
- [jmaczan/tiny-vllm](https://octocounts.com/github/jmaczan/tiny-vllm) — C++ Header, 19,753 code lines
- [rahulsenna/bittorrent-cpp](https://octocounts.com/github/rahulsenna/bittorrent-cpp) — C++ Header, 18,208 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
