Update validate() method for JSON/Android objects