code: public static HalParser parse(final String json, final ObjectMapper objectMapper) {
          if (objectMapper.isEnabled(ACCEPT_SINGLE_VALUE_AS_ARRAY)) {
              return new HalParser(json, objectMapper);
          } else {
              return new HalParser(json, objectMapper
                      .copy()
                      .configure(ACCEPT_SINGLE_VALUE_AS_ARRAY, true));
          }
      }
docs: Create a new HalParser for a JSON document.
  <p>
  The specified {@code objectMapper} is used to parse documents. If not already configured
  appropriately, the {@code objectMapper} is copied and configured to
  {@link com.fasterxml.jackson.databind.DeserializationFeature#ACCEPT_SINGLE_VALUE_AS_ARRAY accept single values as arrays}.
  </p>
  @param json the application/hal+json document to be parsed.
  @param objectMapper the ObjectMapper instance used to parse documents.
  @return HalParser instance.
  
  @since 2.0.0