it actually seems to be enough to just use 

```java
json.optBoolean("collapsable");
``` 

It'll return false by default for every other value.