logging json req/resp