code: public JsonNode parse(InputStream stream) {
          synchronized (lock) {
              try {
                  return mapper.readValue(stream, JsonNode.class);
              } catch (Exception t) {
                  throw new RuntimeException(t);
              }
          }
      }
docs: Parses a stream representing a json, and return it as a JsonNode.
  The stream is <strong>not</strong> closed by the method.
  
  @param stream the JSON stream
  @return the JSON node
  @throws java.lang.RuntimeException if the given stream is not a valid JSON String