public enum JsonNodeFeature extends Enum<JsonNodeFeature> implements DatatypeFeature
JsonNode types.| Enum Constant and Description |
|---|
READ_NULL_PROPERTIES
When reading
JsonNodes are null valued properties included as explicit
NullNodes in resulting ObjectNode
or skipped? |
STRIP_TRAILING_BIGDECIMAL_ZEROES
Feature that determines whether
BigDecimal values
will be "normalized" by stripping trailing zeroes off, when constructing
nodes with JsonNodeFactory.numberNode(java.math.BigDecimal). |
WRITE_NULL_PROPERTIES
When writing
JsonNodes are null valued properties written as explicit
JSON nulls or skipped? |
| Modifier and Type | Method and Description |
|---|---|
boolean |
enabledByDefault() |
boolean |
enabledIn(int flags) |
int |
featureIndex()
Internal index used for efficient storage and index; no
user serviceable contents inside!
|
int |
getMask() |
static JsonNodeFeature |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JsonNodeFeature[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JsonNodeFeature READ_NULL_PROPERTIES
JsonNodes are null valued properties included as explicit
NullNodes in resulting ObjectNode
or skipped?
Default value: true
public static final JsonNodeFeature WRITE_NULL_PROPERTIES
JsonNodes are null valued properties written as explicit
JSON nulls or skipped?
Default value: true
public static final JsonNodeFeature STRIP_TRAILING_BIGDECIMAL_ZEROES
BigDecimal values
will be "normalized" by stripping trailing zeroes off, when constructing
nodes with JsonNodeFactory.numberNode(java.math.BigDecimal).
If enabled, BigDecimal.stripTrailingZeros() will be called
prior to node creation; if disabled, numeric value will be used as is.
Default value: true (for backwards-compatibility).
public static JsonNodeFeature[] values()
for (JsonNodeFeature c : JsonNodeFeature.values()) System.out.println(c);
public static JsonNodeFeature valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean enabledByDefault()
enabledByDefault in interface JacksonFeaturepublic boolean enabledIn(int flags)
enabledIn in interface JacksonFeaturepublic int getMask()
getMask in interface JacksonFeaturepublic int featureIndex()
DatatypeFeaturefeatureIndex in interface DatatypeFeatureCopyright © 2008–2023 FasterXML. All rights reserved.