public class Jsonizer extends Object implements JSONizable
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.node.ArrayNode |
array(String fieldName) |
static Jsonizer |
empty() |
static String |
json(Object o) |
static Jsonizer |
object(JSONizable j) |
com.fasterxml.jackson.databind.node.ObjectNode |
object(String fieldName) |
static Jsonizer |
object(String key,
JSONizable value) |
static Jsonizer |
object(String key,
Object value) |
Jsonizer |
put(String fieldName,
Object value) |
String |
toJson() |
static void |
write(Writer writer,
Object o) |
public static Jsonizer object(JSONizable j)
public static Jsonizer object(String key, JSONizable value)
public static Jsonizer empty()
public static void write(Writer writer, Object o) throws IOException
IOException
public com.fasterxml.jackson.databind.node.ObjectNode object(String fieldName)
public com.fasterxml.jackson.databind.node.ArrayNode array(String fieldName)
public String toJson()
toJson
in interface JSONizable
Copyright © 2023 SAP. All rights reserved.