TGViewer
C++ - Reddit C++ - Reddit @r_cpp · 228 subscribers
Post #24053 22
Production Library Building a C++23 JSON-RPC 2.0 Library - 31 Tests, Full Documentation, Real-World Examples

I recently built a header-only C++23 library implementing JSON-RPC 2.0 and wrote about the complete journey from specification to production-ready code.

The article covers:

\- Why header-only and why C++23

\- Implementation details (dispatcher pattern, error handling)

\- Real-world examples with full code

\- Testing strategy (31 unit tests)

\- Lessons learned

Library: https://github.com/pooriayousefi/jsonrpc2

Article: https://medium.com/@pooriayousefi/building-a-modern-c-23-json-rpc-2-0-library-b62c4826769d

I'd love to hear feedback from the community!

https://redd.it/1o5rxk0
@r_cpp
GitHub GitHub - pooriayousefi/jsonrpc2: A modern C++23 header-only library implementing the JSON-RPC 2.0 specification A modern C++23 header-only library implementing the JSON-RPC 2.0 specification - pooriayousefi/jsonrpc2
More from @r_cpp
  1. Oct 14, 2026I tested whether a coding agent would use C++23 ranges without being told Blog post: https…
  2. Oct 14, 2026C++ futures part 1: The mental model https://devblogs.microsoft.com/oldnewthing/20261012-0…
  3. Oct 14, 2026C++ futures part 2: The mental model for std::promise, std::packaged_task https://devblogs…
  4. Oct 12, 2026[Release] slick-logger v2.2.0 — Lock-free asynchronous C++20 logging with multi-process sh…
  5. Oct 12, 2026Cheap alternative to reboot parameters (nohz, rcu, isolcpus) for stable benchmarks When no…
  6. Oct 12, 2026This C++ drama is crazy - Adobe votes no https://www.youtube.com/watch?v=DEqx_NMMH9Q https…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →