private static com.fasterxml.jackson.core.JsonParser createParser(
                final JsonFactory factory, final String json, final Optional<String> offsetInJsonPointer) {
            try {
                final com.fasterxml.jackson.core.JsonParser baseParser = factory.createParser(json);
                return offsetInJsonPointer.map(p -> wrapWithPointerFilter(baseParser, p)).orElse(baseParser);
            } catch (final Exception ex) {
                throw new org.embulk.spi.json.JsonParseException("Failed to parse JSON: " + JsonParserDelegateImpl.sampleJsonString(json), ex);
            }
        }
Parses the stringified JSON {@link java.lang.String} with the specified offset to {@link org.msgpack.value.Value}.

@param json  stringified JSON to parse
@param offsetInJsonPointer  offset in JSON Pointer to parse
@return parsed {@link org.msgpack.value.Value}
embulk-deps/src/main/java/org/embulk/deps/json/JsonParserDelegateImpl.java