diff --git a/archery-commons/src/main/java/com/github/romualdrousseau/archery/commons/dsf/json/jackson/JSONJacksonObject.java b/archery-commons/src/main/java/com/github/romualdrousseau/archery/commons/dsf/json/jackson/JSONJacksonObject.java index 87a74cba..4bd3c5de 100644 --- a/archery-commons/src/main/java/com/github/romualdrousseau/archery/commons/dsf/json/jackson/JSONJacksonObject.java +++ b/archery-commons/src/main/java/com/github/romualdrousseau/archery/commons/dsf/json/jackson/JSONJacksonObject.java @@ -55,6 +55,8 @@ public Optional get(final String k) { object = (T) Integer.valueOf(node.intValue()); } else if (node.isFloat()) { object = (T) Float.valueOf(node.floatValue()); + } else if (node.isBoolean()) { + object = (T) Boolean.valueOf(node.booleanValue()); } else { object = (T) node.textValue(); } diff --git a/archery-commons/src/main/java/com/github/romualdrousseau/archery/commons/dsf/yaml/jackson/YAMLJacksonObject.java b/archery-commons/src/main/java/com/github/romualdrousseau/archery/commons/dsf/yaml/jackson/YAMLJacksonObject.java index 1a81f311..4bb6d359 100644 --- a/archery-commons/src/main/java/com/github/romualdrousseau/archery/commons/dsf/yaml/jackson/YAMLJacksonObject.java +++ b/archery-commons/src/main/java/com/github/romualdrousseau/archery/commons/dsf/yaml/jackson/YAMLJacksonObject.java @@ -55,6 +55,8 @@ public Optional get(final String k) { object = (T) Integer.valueOf(node.intValue()); } else if (node.isFloat()) { object = (T) Float.valueOf(node.floatValue()); + } else if (node.isBoolean()) { + object = (T) Boolean.valueOf(node.booleanValue()); } else { object = (T) node.textValue(); }