nuclei icon indicating copy to clipboard operation
nuclei copied to clipboard

Output json field includes reference and matched-line as null

Open Ice3man543 opened this issue 3 years ago • 2 comments
trafficstars

Please describe your feature request:

Nuclei JSON output contains reference and matched-line with null as value, instead empty cases of these values should be omitted.

Probably custom json marshallers need to be changed along with adding omitempty to the required fields.

Ice3man543 avatar May 23 '22 16:05 Ice3man543

@ehsandeep @Mzack9999 the issue here is StringSlice is a custom type and unless it is a pointer go's encoding/json always marshalls and writes null as value ignoring omitempty tags on custom types. To do so would require some extra work so unsure how we want to proceed here.

Ice3man543 avatar Jul 20 '22 10:07 Ice3man543

Marking on-hold as too many changes required which doesn't seem worth it at this point.

Ice3man543 avatar Jul 20 '22 13:07 Ice3man543

Closing as per the above comment.

ehsandeep avatar Nov 23 '22 15:11 ehsandeep