Generating JSON workflows and traces.