func FormatJson(writer io.Writer, value interface{}) error {
	result, err := json.Marshal(value)
	if err != nil {
		return err
	}
	result = append(result, '\n')
	_, err = writer.Write(result)
	return err
}
// FormatJson writes out value as json.
FormatJson writes out value as json.
// FormatJson writes out value as json .
func FormatJson(writer io.Writer, value interface{}) error {
	result, err := json.Marshal(value)
	if err != nil {
		return err
	}
	result = append(result, '\n')
	_, err = writer.Write(result)
	return err
}
func FormatJson ( writer io . Writer , value interface { } ) error { result , err := json . Marshal ( value ) if err != nil { return err } result = append ( result , '\n' ) _ , err = writer . Write ( result ) return err }
FormatJson writes out value as json.
FormatJson writes out value as json .