Use JSONUtil.getString() where possible, and avoid all of those "null" check.