public final class ModelSerializer
extends java.lang.Object
Model
to an ObjectNode
.
The serialized value sorts all map key-value pairs so that they contain a consistent key ordering, reducing noise in diffs based on serialized model.
After serializing to an ObjectNode, the node can then be serialized to formats like JSON, YAML, Ion, etc.
Modifier and Type | Class and Description |
---|---|
static class |
ModelSerializer.Builder
Builder used to create
ModelSerializer . |
Modifier and Type | Method and Description |
---|---|
static ModelSerializer.Builder |
builder() |
ObjectNode |
serialize(Model model) |
public ObjectNode serialize(Model model)
public static ModelSerializer.Builder builder()
ModelSerializer
.