summaryrefslogtreecommitdiff
path: root/src/pkg/json/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/pkg/json/parse.go')
-rw-r--r--src/pkg/json/parse.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/json/parse.go b/src/pkg/json/parse.go
index e33b9dbc1..a95d7d215 100644
--- a/src/pkg/json/parse.go
+++ b/src/pkg/json/parse.go
@@ -11,8 +11,8 @@
package json
import (
+ "bytes";
"fmt";
- "io";
"math";
"strconv";
"strings";
@@ -127,7 +127,7 @@ func Unquote(s string) (t string, ok bool) {
func Quote(s string) string {
chr := make([]byte, utf8.UTFMax);
chr0 := chr[0:1];
- b := new(io.ByteBuffer);
+ b := new(bytes.Buffer);
chr[0] = '"';
b.Write(chr0);
for i := 0; i < len(s); i++ {