Now manages scalar response (no field def in the request)
@@ -262,6 +262,8 @@ public class ObjectResponse {
* @return
*/
public void appendResponseQuery(StringBuilder sb) {
+
+ if (scalarFields.size() > 0 || subObjects.size() > 0) {
logger.debug("Appending ReponseDef content for field " + fieldName + " of type " + fieldClass);
sb.append("{");
@@ -277,6 +279,7 @@ public class ObjectResponse {
sb.append("}");
}
+ }
/**
* Append one field (or object) name and optional alias to the given {@link StringBuilder}.
