Skip to content

Commit

Permalink
this should fix backslash issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dieter Plaetinck committed Oct 31, 2014
1 parent 481a8b0 commit 8d2e14c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions common/serialize_series.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,7 @@ func SerializeSeriesJson(memSeries map[string]*protocol.Series, precision TimePr
}

if value.StringValue != nil {
buf.WriteString("\"")
buf.WriteString(*value.StringValue)
buf.WriteString("\"")
buf.WriteString(strconv.Quote(*value.StringValue))
} else if value.DoubleValue != nil {
buf.WriteString(strconv.FormatFloat(*value.DoubleValue, 'f', 6, 64))
} else if value.Int64Value != nil {
Expand Down

0 comments on commit 8d2e14c

Please sign in to comment.