public abstract class Modifier extends Object implements SpecDriven, ContextualTransform
| Modifier and Type | Class and Description |
|---|---|
static class |
Modifier.Defaultr
This variant of modifier only writes when the key/index is missing or the value is null
|
static class |
Modifier.Definr
This variant of modifier only writes when the key/index is missing
|
static class |
Modifier.Overwritr
This variant of modifier creates the key/index is missing,
and overwrites the value if present
|
ROOT_KEY| Modifier and Type | Method and Description |
|---|---|
Object |
transform(Object input,
Map<String,Object> context)
Execute a transform on some input JSON with optionally provided "context" and return the result.
|
public Object transform(Object input, Map<String,Object> context)
ContextualTransformtransform in interface ContextualTransforminput - the JSON object to transform in plain vanilla Jackson Mapcontext - information outside of the input JSON that needs to be taken into account when doing the transformCopyright © 2023. All rights reserved.