code: def _update_state_from_response(self, response_json):
          
          if response_json.get('data') is not None:
              cloud_clock = response_json.get('data')
          else:
              cloud_clock = response_json
          self.parent.json_state = cloud_clock
  
          cloud_clock_last_reading = cloud_clock.get('last_reading')
          dials = cloud_clock.get('dials')
          for dial in dials:
              if dial.get('object_id') == self.object_id():
                  dial['connection'] = cloud_clock_last_reading.get('connection')
                  self.json_state = dial
                  return True
          return False
docs: :param response_json: the json obj returned from query
          :return: