code: func NewJSONWriter(logger logrus.FieldLogger) *JSONWriter {
  	writer := &JSONWriter{logger: logger}
  
  	writer.Reporter = DefaultErrorReporter
  	writer.ErrorEnhancer = defaultJSONErrorEnhancer
  	return writer
  }
docs: // NewJSONWriter returns a json