nuclei/v2/pkg/output/format_json.go

9 lines
232 B
Go

package output
import jsoniter "github.com/json-iterator/go"
// formatJSON formats the output for json based formatting
func (w *StandardWriter) formatJSON(output *ResultEvent) ([]byte, error) {
return jsoniter.Marshal(output)
}