// PrintJSON prints the Results in JSON format to the Writer provided.
PrintJSON prints the Results in JSON format to the Writer provided.
// PrintJSON prints the Results in JSON format to the Writer provided .
func (r *Results) PrintJSON(w io.Writer) error {
	resOut, err := json.Marshal(r)
	if err != nil {
		return err
	}
	_, err = io.WriteString(w, string(resOut))
	return err
}
func ( r * Results ) PrintJSON ( w io . Writer ) error { resOut , err := json . Marshal ( r ) if err != nil { return err } _ , err = io . WriteString ( w , string ( resOut ) ) return err }
PrintJSON prints the Results in JSON format to the Writer provided.
PrintJSON prints the Results in JSON format to the Writer provided .