Fix returning number as string for numbers
This commit is contained in:
parent
a4ca21bb37
commit
484b1062e1
@ -94,7 +94,7 @@ func (n Numeric) Add(other Numeric) Numeric {
|
||||
|
||||
func (n Numeric) MarshalJSON() ([]byte, error) {
|
||||
if n.Int.Int64() == 0 {
|
||||
return []byte("\"0\""), nil
|
||||
return []byte("0"), nil
|
||||
}
|
||||
|
||||
s := fmt.Sprintf("%d", n.Int)
|
||||
|
Loading…
x
Reference in New Issue
Block a user