log headers and body as stringified JSON