diff --git a/extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.relational/src/com/ibm/xsp/extlib/relational/jdbc/services/content/JsonJdbcQueryContent.java b/extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.relational/src/com/ibm/xsp/extlib/relational/jdbc/services/content/JsonJdbcQueryContent.java index 23f3f15..de3d0bc 100644 --- a/extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.relational/src/com/ibm/xsp/extlib/relational/jdbc/services/content/JsonJdbcQueryContent.java +++ b/extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.relational/src/com/ibm/xsp/extlib/relational/jdbc/services/content/JsonJdbcQueryContent.java @@ -1,5 +1,5 @@ /* - * © Copyright IBM Corp. 2011, 2015 + * © Copyright IBM Corp. 2011, 2015 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -235,7 +235,11 @@ else if (columnValue instanceof Boolean) { writeProperty(jwriter, columnDefs[i].getName(), (Boolean)columnValue); } - else { + else if (columnValue == null) { + jwriter.startProperty(columnDefs[i].getName()); + jwriter.outNull(); + jwriter.endProperty(); + } else { writeProperty(jwriter, columnDefs[i].getName(), columnValue.toString()); } @@ -361,4 +365,4 @@ private String findSqlQuery(JdbcParameters jdcbParameters) { } -} \ No newline at end of file +}