Use json-stringify-safe to log the circular json objects.