public class ObjectWriter extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
writeObject(com.fasterxml.jackson.databind.node.ObjectNode node,
String key,
Object value)
Write an object to json
|
static void |
writeObjectArray(com.fasterxml.jackson.databind.node.ObjectNode parent,
List<Object> models,
String propertyName)
Writes an array of objects to the parent node.
|
static void |
writeStringArray(com.fasterxml.jackson.databind.node.ObjectNode parent,
List<String> models,
String propertyName)
Writes an array of strings to the parent node.
|
static void |
writeStringMap(com.fasterxml.jackson.databind.node.ObjectNode parent,
Map<String,String> models,
String propertyName)
Writes a map of strings to the parent node.
|
public static void writeStringArray(com.fasterxml.jackson.databind.node.ObjectNode parent,
List<String> models,
String propertyName)
parent - the parent json nodemodels - list of StringspropertyName - the name of the nodepublic static void writeObjectArray(com.fasterxml.jackson.databind.node.ObjectNode parent,
List<Object> models,
String propertyName)
parent - the parent json nodemodels - list of objectspropertyName - the name of the nodepublic static void writeStringMap(com.fasterxml.jackson.databind.node.ObjectNode parent,
Map<String,String> models,
String propertyName)
parent - the parent json nodemodels - map of stringspropertyName - name of the nodeCopyright © 2018–2021. All rights reserved.