update client to print json