Fixing bug 24240
This commit is contained in:
parent
cab37c6fc2
commit
13c25410fa
|
@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
|
|||
## [v4.1.1-SNAPSHOT]
|
||||
|
||||
- Fixed bug on JSONQuery for Facets which does not have any properties to match [#24237]
|
||||
- Fixed bug on returned boolean values as string [#24240]
|
||||
|
||||
|
||||
## [v4.1.0]
|
||||
|
|
|
@ -20,6 +20,7 @@ import org.gcube.com.fasterxml.jackson.core.JsonProcessingException;
|
|||
import org.gcube.com.fasterxml.jackson.databind.JsonNode;
|
||||
import org.gcube.com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import org.gcube.com.fasterxml.jackson.databind.node.ArrayNode;
|
||||
import org.gcube.com.fasterxml.jackson.databind.node.BooleanNode;
|
||||
import org.gcube.com.fasterxml.jackson.databind.node.JsonNodeType;
|
||||
import org.gcube.com.fasterxml.jackson.databind.node.ObjectNode;
|
||||
import org.gcube.com.fasterxml.jackson.databind.node.TextNode;
|
||||
|
@ -1194,6 +1195,10 @@ public abstract class ElementManagement<El extends OElement, T extends Type> {
|
|||
return objectNode;
|
||||
}
|
||||
|
||||
if(object instanceof Boolean) {
|
||||
return BooleanNode.valueOf((Boolean) object);
|
||||
}
|
||||
|
||||
return new TextNode(object.toString());
|
||||
|
||||
} catch(Exception e) {
|
||||
|
|
Loading…
Reference in New Issue