use json pretty printing for logginf