Skip to content

Commit 6e1b153

Browse files
chore: default ToJSON return null
1 parent fdca2a7 commit 6e1b153

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

result.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ func (this *Result) Dump() {
121121
// ToJSON returns a JSON representation of this query result.
122122
func (this *Result) ToJSON() string {
123123
buf := new(bytes.Buffer)
124-
_, _ = this.DumpToWriter(bufio.NewWriter(buf), OUTFORMAT_JSON, false, "<AUTO>", "NULL", "", 0, false)
124+
_, _ = this.DumpToWriter(bufio.NewWriter(buf), OUTFORMAT_JSON, false, "<AUTO>", "null", "", 0, false)
125125
return buf.String()
126126
}
127127

0 commit comments

Comments
 (0)