@iperdomo thats a good point. In that case the way to maintain an exact behaviour across would be

```
if (json.has("collapseable") && !"null".equals(json.getString("collapseable")) {
  dto.setCollapseable(json.getBoolean("collapseable"));
}
``` 
We know that the string shall always be either "true", "false"  or "null" and anything outside of that will thrown an exception.