# nlohmann/json SLOC report

> nlohmann/json: 89,797 code lines at commit 322063822f66, counted with tokei-15.0.0 on 2026-11-23. Saved result ce861b5d49d8a5e887deb6572d642193b5c76fa062df8aa07d0710c4a390f9c6.

Source: [nlohmann/json on GitHub](https://github.com/nlohmann/json) · counted commit [322063822f66](https://github.com/nlohmann/json/tree/322063822f66533bb81ef8e938fd07e5f6394917)

nlohmann/json has 89,797 source lines of code out of 130,123 total lines across 140 files, counted with tokei from the develop ref at commit 322063822f66 on November 23, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving nlohmann/json to commit 322063822f66, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.

## Counting rules and retention

nlohmann/json: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.

Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.

## Repository size insights

This is a medium-sized codebase by counted code lines. Code represents 69.0% of all lines, comments represent 21.5%, and the repository averages 641 code lines per file. C++ Header accounts for 96.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ Header | 85 | 122,345 | 86,592 | 24,720 | 11,033 |
| CMake | 9 | 2,194 | 1,558 | 406 | 230 |
| Python | 5 | 1,084 | 790 | 123 | 171 |
| Meson | 2 | 187 | 169 | 8 | 10 |
| Makefile | 1 | 266 | 145 | 71 | 50 |
| Jinja2 | 1 | 138 | 125 | 5 | 8 |
| Bazel | 2 | 125 | 119 | 0 | 6 |
| C++ | 2 | 139 | 102 | 21 | 16 |
| Autoconf | 4 | 84 | 61 | 13 | 10 |
| TOML | 1 | 58 | 49 | 0 | 9 |
| C++ Module | 1 | 73 | 44 | 19 | 10 |
| JSON | 3 | 25 | 25 | 0 | 0 |
| Swift | 1 | 22 | 18 | 2 | 2 |
| Markdown | 9 | 2,692 | 0 | 2,069 | 623 |
| Plain Text | 14 | 691 | 0 | 532 | 159 |

Top language: C++ Header 96.4%. Generated on November 23, 2026. Canonical report: https://octocounts.com/github/nlohmann/json/commit/322063822f66533bb81ef8e938fd07e5f6394917?reportId=ce861b5d49d8a5e887deb6572d642193b5c76fa062df8aa07d0710c4a390f9c6&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

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

## Report FAQ

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

nlohmann/json has 89,797 lines of code, plus 27,989 comment lines and 12,337 blank lines, for 130,123 total lines at commit 322063822f66 on November 23, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit 322063822f66, 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 develop at commit 322063822f66 on November 23, 2026.

## Similar repository reports

- [tristancalderbank/OpenGL-PBR-Renderer](https://octocounts.com/github/tristancalderbank/OpenGL-PBR-Renderer) — C++ Header, 96,000 code lines
- [jfalcou/eve](https://octocounts.com/github/jfalcou/eve) — C++ Header, 98,834 code lines
- [seanbaxter/circle](https://octocounts.com/github/seanbaxter/circle) — C++ Header, 99,790 code lines
- [skypjack/entt](https://octocounts.com/github/skypjack/entt) — C++ Header, 73,913 code lines
- [vtil-project/VTIL-Core](https://octocounts.com/github/vtil-project/VTIL-Core) — C++ Header, 111,669 code lines
- [nayutalienx/cursor-trail](https://octocounts.com/github/nayutalienx/cursor-trail) — C++ Header, 71,851 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [nlohmann/json vs RapidJSON](https://octocounts.com/compare/nlohmann-json-vs-rapidjson)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [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)
- [All OctoCounts guides](https://octocounts.com/docs)
