json printout fix attempt