Minimal, dependency-free JSON writer for manifests: named lists become
objects, unnamed vectors of length > 1 arrays, NA/NULL null. Suitable
for calib_run.manifest (jsonb) and JSON sidecars.
Arguments
- x
A manifest from
release_manifest()(or any list of scalars and named lists).- pretty
Logical: indent with two spaces.