diff --git a/main.go b/main.go index 9192f77..5d24504 100644 --- a/main.go +++ b/main.go @@ -191,6 +191,11 @@ func main() { } if options.json { + + if result == nil { + result = &Result{} + } + resultJson, err := getResultJson(*result) if err != nil {