Expand description
Shared JSON read/write helpers for the pipeline stages.
Every stage serializes artifacts the same way: pretty-printed, two-space
indent, one trailing newline. serde_json’s preserve_order feature keeps
object key order stable so artifacts diff cleanly across runs.
Functions§
- now_
iso8601 - The current wall clock as
2026-06-08T12:00:00.000Z, matching JSnew Date().toISOString()— thegeneratedstamp every report carries. chrono ships without itsclockfeature, so the instant comes fromstd::timeand is formatted via chrono. - write_
json - Write
valuetopathas pretty JSON with a trailing newline.