New dual-scan (JSON) output builder