json output: write 1 file instead of two and change field names