You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Refactor] Replace the shared JSON scanner with nlohmann/json #975
Inspired by #963, which identified the same dependency-reimplementation pattern in CLI configuration parsing. This is a separate scope and does not replace or modify #963.
What to build
Replace the custom implementation behind the shared json_helpers interface with the repository's existing nlohmann/json dependency. Preserve the narrow public interface so nlohmann types do not become part of the public ABI, while deleting the handwritten token, string, number, array, and object scanner.
The current helper implementation is roughly 500 lines and is used broadly by production code. Existing callers rely on non-standard fallback and prefix-parsing behavior, so the migration must make those contracts explicit rather than silently changing tests to accept new behavior.
Acceptance criteria
The shared JSON helper interface is implemented using nlohmann/json; the handwritten scanner implementation is removed.
Existing behavior for missing keys, empty strings, scalar-versus-array values, maximum array counts, Unicode escapes, and malformed or partial values is covered by contract tests.
Duplicate-key and comment handling are explicitly defined and tested.
nlohmann/json types are not exposed through the public helper interface or runtime ABI.
All production targets that consume the helper compile and the existing C++ test suite passes without weakening acceptance criteria.
Activity
[Refactor] Replace the shared JSON scanner with nlohmann/json (#975) (#…