public Object getDataJson ( String path ) throws ZooKeeperException { try { Object data = getFromCache ( cacheNameJson , path ) ; if ( data == null ) { data = _readJson ( path ) ; putToCache ( cacheNameJson , path , data ) ; } return data ; } catch ( ZooKeeperException . NodeNotFoundException e ) { return null ; } catch ( Exception e ) { if ( e instanceof ZooKeeperException ) { throw ( ZooKeeperException ) e ; } else { throw new ZooKeeperException ( e ) ; } } }
Reads data from a node as a JSON object .