code: public static <T> T readValue(InputStream inputStream, Class<T> type) throws IOException, BadVersionException {
          return DataModelSerializer.deserializeObject(inputStream, type);
      }
docs: Reads in a single object from a JSON input stream
  
  @param inputStream The input stream containing the JSON object
  @param type The type of the object to be read from the stream
  @return The object
  @throws IOException