consolidated outputting JSON pairs