public static final class JsonNodeParser.Builder extends Object
JsonNodeParser. Created via JsonNodeParser.builder().| Modifier and Type | Method and Description |
|---|---|
JsonNodeParser |
build()
Build a
JsonNodeParser based on the current configuration of this builder. |
JsonNodeParser.Builder |
jsonFactory(com.ibm.cos.v2.thirdparty.jackson.core.JsonFactory jsonFactory)
The
JsonFactory implementation to be used when parsing the input. |
JsonNodeParser.Builder |
jsonValueNodeFactory(JsonValueNodeFactory jsonValueNodeFactory)
Factory to create JsonNode out of JSON tokens.
|
JsonNodeParser.Builder |
removeErrorLocations(boolean removeErrorLocations)
Whether error locations should be removed if parsing fails.
|
public JsonNodeParser.Builder removeErrorLocations(boolean removeErrorLocations)
By default, this is false.
public JsonNodeParser.Builder jsonFactory(com.ibm.cos.v2.thirdparty.jackson.core.JsonFactory jsonFactory)
JsonFactory implementation to be used when parsing the input. This allows JSON extensions like CBOR or
Ion to be supported.
It's highly recommended us use a shared JsonFactory where possible, so they should be stored statically:
http://wiki.fasterxml.com/JacksonBestPracticesPerformance
By default, this is JsonNodeParser.DEFAULT_JSON_FACTORY.
public JsonNodeParser.Builder jsonValueNodeFactory(JsonValueNodeFactory jsonValueNodeFactory)
By default, this is JsonValueNodeFactory.DEFAULT.
public JsonNodeParser build()
JsonNodeParser based on the current configuration of this builder.Copyright © 2026. All rights reserved.