Generate output that is valid JSON.