promql/value.go
func (p Point) MarshalJSON() ([]byte, error) {
	v := strconv.FormatFloat(p.V, 'f', -1, 64)
	return json.Marshal([...]interface{}{float64(p.T) / 1000, v})
}
func (p Point) MarshalJSON() ([]byte, error) {
	v := strconv.FormatFloat(p.V, 'f', -1, 64)
	return json.Marshal([...]interface{}{float64(p.T) / 1000, v})
}
func ( p Point ) MarshalJSON ( ) ( [ ] byte , error ) { v := strconv . FormatFloat ( p . V , 'f' , - 1 , 64 ) return json . Marshal ( [ ... ] interface { } { float64 ( p . T ) / 1000 , v } ) }
// MarshalJSON implements json.Marshaler.
MarshalJSON implements json . Marshaler .