func (v *JSON) Visit(f uefi.Firmware) error {
	b, err := json.MarshalIndent(f, "", "\t")
	if err != nil {
		return err
	}
	fmt.Fprintln(v.W, string(b))
	return nil
}
Visit applies the JSON visitor to any Firmware type.
package visitors
import (
	"encoding/json"
	"fmt"
	"io"
	"os"
	"github.com/linuxboot/fiano/pkg/uefi"
)
type JSON struct {
	W io.Writer
}
func (v *JSON) Run(f uefi.Firmware) error {
	return f.Apply(v)
}