Skip to content

Commit beb0a33

Browse files
author
pengyu
committed
fix bug: 解决无法输出json格式数据的问题
1 parent 2e74246 commit beb0a33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/py/sqlcli/SqlCliCommands.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ private String createJsonString(String[] columnNames, List<String[]> rows) {
159159
}
160160
jsonArray.add(field);
161161
}
162-
return "";
162+
return JSONArray.toJSONString(jsonArray, true);
163163
}
164164

165165
private String createExcelFile(String[] columnNames, List<String[]> rows) {

0 commit comments

Comments
 (0)