From 3b664ac17899997aec1586a9fc336d230ae69c80 Mon Sep 17 00:00:00 2001 From: hoteas Date: Sun, 3 Dec 2017 18:58:10 +0000 Subject: [PATCH] --- objtoobj.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/objtoobj.go b/objtoobj.go index 2f8e32a..8a72ae8 100644 --- a/objtoobj.go +++ b/objtoobj.go @@ -275,7 +275,7 @@ func StrArrayToJsonStr(a string) string { a = Substr(a, 1, len(a)-1) } if a[len(a)-1] == ',' { - a = Substr(a, 1, len(a)-2) + a = Substr(a, 0, len(a)-1) } //a = strings.Replace(a, ",", `,`, -1) a = `[` + a + `]`