func (l *HTTPStats) jsonHandler(w http.ResponseWriter, req *http.Request) {
	info, err := json.MarshalIndent(l.system, "", "\t")
	if err != nil {
		io.WriteString(w, err.Error())
		return
	}

	w.Write(info)
}
// jsonHandler is an HTTP handler which outputs the $SYS stats as JSON.
jsonHandler is an HTTP handler which outputs the $SYS stats as JSON.
// jsonHandler is an HTTP handler which outputs the $SYS stats as JSON .
func (l *HTTPStats) jsonHandler(w http.ResponseWriter, req *http.Request) {
	info, err := json.MarshalIndent(l.system, "", "\t")
	if err != nil {
		io.WriteString(w, err.Error())
		return
	}
	w.Write(info)
}
func ( l * HTTPStats ) jsonHandler ( w http . ResponseWriter , req * http . Request ) { info , err := json . MarshalIndent ( l . system , " " , " \t " ) if err != nil { io . WriteString ( w , err . Error ( ) ) return } w . Write ( info ) }
jsonHandler is an HTTP handler which outputs the $SYS stats as JSON.
jsonHandler is an HTTP handler which outputs the $SYS stats as JSON .