Skip to content

Commit b285a50

Browse files
committed
Removing trailing comma when including parents in toJson() method
1 parent 9f9277e commit b285a50

File tree

1 file changed

+0
-4
lines changed
  • activejdbc/src/main/java/org/javalite/activejdbc

1 file changed

+0
-4
lines changed

activejdbc/src/main/java/org/javalite/activejdbc/Model.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,10 +1000,6 @@ protected void toJsonP(StringBuilder sb, boolean pretty, String indent, String..
10001000
}
10011001
parent.toJsonP(sb, pretty, (pretty ? " " + indent : ""));
10021002

1003-
if(i < (parentClasses.size() - 1)){
1004-
sb.append(',');
1005-
}
1006-
10071003
if (pretty) {
10081004
sb.append("\n ").append(indent);
10091005
}

0 commit comments

Comments
 (0)