Relativity¶
-
public enum
Relativity¶ Specifies the relativeTo state of a serialization target. Absolute means relative to the root of the JSON map. Note that the absolute position whenever we are inside a collection-like entity (collection, array, or map.) Relative is the default setting and usually makes the most sense.
Enum Constants¶
ABSOLUTE¶
-
public static final Relativity
ABSOLUTE¶ Absolute relativeTo state means that all fields are serialized relative to the root JSON. In the case of fields that are nested within arrays/sets, the root becomes that array/set.
RELATIVE¶
-
public static final Relativity
RELATIVE¶ Relative state means that all fields are serialized relative to their position in a Map. This is the default.