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 + `]`