Convert POST body to json string before logging it