How ldn-softdev/jtc works
jtc is a command-line JSON extraction and transformation tool. The principal workflow is to accept command-line options and JSON input, select data with walk paths, apply requested operations, and emit JSON or comparison results. The README also documents templates, namespaces, regex searches, streaming, concurrent reads, in-place edits, and optional shell evaluation. The source excerpts expose the CLI, JSON model, input abstraction, and threading; some feature links rely on README statements and the SOURCE INDEX rather than complete call sites.
Main entry points: jtc.cpp Command workflow · extensions.hpp C++ extensions · dbg.hpp Debugging · Json.hpp JSON tree and walk paths
Components 17
CLI and guidance
- Command workflow
jtc.cpp - Option parsing
lib/getoptions.hpp - Embedded usage guide
lib/jtc_guide.hpp - Walk-path guide
lib/wp_guide.hpp
JSON processing
- JSON tree and walk paths
lib/Json.hpp - JSON output
jtc.cpp
Input and execution
- Input streams
lib/Streamstr.hpp - Concurrent dispatch
lib/ThreadMaster.hpp - Signal handling
lib/signals.hpp - Shell evaluation
lib/shell.hpp
Runtime support
- Object formatting
lib/Outable.hpp - Debugging
lib/dbg.hpp - Flow tracing
lib/dbgflow.hpp - C++ extensions
lib/extensions.hpp - Macro utilities
lib/macrolib.hpp
Other components
- CLI user
- JSON result
Connections 26
- CLI user → Command workflow: runs
README.md - Command workflow → Option parsing: parses options
jtc.cpp - Command workflow → Input streams: uses input
jtc.cpp - Command workflow → JSON tree and walk paths: processes JSON
jtc.cpp - Command workflow → Concurrent dispatch: dispatches reads
jtc.cpp - Command workflow → Signal handling: uses signals
jtc.cpp - Command workflow → Embedded usage guide: prints guidance
lib/jtc_guide.hpp - Embedded usage guide → Walk-path guide: includes guide
lib/jtc_guide.hpp - Command workflow → Shell evaluation: may evaluate commands
README.md - Command workflow → JSON output: writes results
jtc.cpp - JSON output → JSON result: emits JSON
jtc.cpp - JSON tree and walk paths → Object formatting: uses formatting
lib/Json.hpp - JSON tree and walk paths → Input streams: uses stream abstraction
lib/Json.hpp - JSON tree and walk paths → C++ extensions: uses extensions
lib/Json.hpp - Object formatting → C++ extensions: uses extensions
lib/Outable.hpp - Object formatting → Macro utilities: uses macros
lib/Outable.hpp - Input streams → C++ extensions: uses extensions
lib/Streamstr.hpp - Concurrent dispatch → Debugging: uses debugging
lib/ThreadMaster.hpp - Concurrent dispatch → C++ extensions: uses extensions
lib/ThreadMaster.hpp - Option parsing → C++ extensions: uses extensions
lib/getoptions.hpp - Shell evaluation → Debugging: uses debugging
lib/shell.hpp - Shell evaluation → C++ extensions: uses extensions
lib/shell.hpp - Flow tracing → Debugging: uses debugging
lib/dbgflow.hpp - Debugging → Macro utilities: uses macros
lib/dbg.hpp - Debugging → C++ extensions: uses extensions
lib/dbg.hpp - C++ extensions → Macro utilities: uses macros
lib/extensions.hpp