code: func NewJSONOutput(w io.Writer) Output {
  	enc := json.NewEncoder(w)
  	return OutputFunc(func(fields map[string]interface{}) error {
  		return enc.Encode(fields)
  	})
  }
docs: // NewJSONOutput returns a new JSON output with the given writer.