mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 20:25:27 +00:00
* use parsed options while signing * update project layout to v3 * fix .gitignore * remove example template * misc updates * bump tlsx version * hide template sig warning with env * js: retain value while using log * fix nil pointer derefernce * misc doc update --------- Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
15 lines
358 B
Go
15 lines
358 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) {
|
|
if !w.jsonReqResp { // don't show request-response in json if not asked
|
|
output.Request = ""
|
|
output.Response = ""
|
|
}
|
|
return jsoniter.Marshal(output)
|
|
}
|