FIX: JsonInt64.MarshalJSON missing quotes

This commit is contained in:
Sergey Kuzmenko 2019-11-05 23:11:39 +03:00
parent 39f0e43cd7
commit 9892e2c36b

View file

@ -138,8 +138,8 @@ func buildResponseError(data json.RawMessage) error {
type JsonInt64 int64
// MarshalJSON marshals to json
func (jsonInt64 *JsonInt64) MarshalJSON() ([]byte, error) {
return []byte(strconv.FormatInt(int64(*jsonInt64), 10)), nil
func (jsonInt64 JsonInt64) MarshalJSON() ([]byte, error) {
return []byte(`"`+strconv.FormatInt(int64(jsonInt64), 10)+`"`), nil
}
// UnmarshalJSON unmarshals from json