Just a small thing: you can use json.getBoolean make this bit simpler <pre>availability = json.getBoolean("available");</pre>