diff --git a/src/main/java/org/gcube/informationsystem/queries/templates/impl/entities/QueryTemplateImpl.java b/src/main/java/org/gcube/informationsystem/queries/templates/impl/entities/QueryTemplateImpl.java index 3e847a5..ba124bb 100644 --- a/src/main/java/org/gcube/informationsystem/queries/templates/impl/entities/QueryTemplateImpl.java +++ b/src/main/java/org/gcube/informationsystem/queries/templates/impl/entities/QueryTemplateImpl.java @@ -100,7 +100,7 @@ public class QueryTemplateImpl extends EntityElementImpl implements QueryTemplat for(TemplateVariable tv : templateVariables.values()) { Object defaultValue = tv.getDefaultValue(); JsonNode jsonNode = ElementMapper.getObjectMapper().valueToTree(defaultValue); - objectNode.put(tv.getName(), jsonNode); + objectNode.set(tv.getName(), jsonNode); // if(defaultValue instanceof Integer) { // objectNode.put(tv.getName(), (Integer) defaultValue);