Fix .toJSON() with embedded lists in SQL
Resolves:
@@ -66,8 +66,13 @@ public class OSQLMethodToJSON extends OAbstractSQLMethod {
StringBuilder builder = new StringBuilder();
builder.append("[");
+ boolean first = true;
for (Object o : OMultiValue.getMultiValueIterable(iThis, false)) {
+ if (!first) {
+ builder.append(",");
+ }
builder.append(execute(o, iCurrentRecord, iContext, ioResult, iParams));
+ first = false;
}
builder.append("]");
