Workaround
My entire flow does a bunch of work in addition to the FTP I described above. Originally, I'd returned the FTP results to an orchestrator that determines whether each step in the process worked. That orchestrator also handled writing the report to JSON, since it knows about config options for verbosity, logging folders, and so on.
My workaround is to have the routine above also handle writing the JSON output. Not as clean for reasons above, but it seems to be working.
My workaround is to have the routine above also handle writing the JSON output. Not as clean for reasons above, but it seems to be working.