public final class GsonOrdainer extends Object
| Modifier and Type | Method and Description |
|---|---|
static SanitizedContent |
serializeElement(com.google.gson.JsonElement element)
Serializes a JsonElement to string.
|
static SanitizedContent |
serializeObject(com.google.gson.Gson gson,
Object obj)
Generate sanitized js content with provided Gson serializer.
|
static SanitizedContent |
serializeObject(com.google.gson.Gson gson,
Object obj,
Type type)
Generate sanitized js content with provided Gson serializer and object type.
|
static SanitizedContent |
serializeObject(Object obj)
Generate sanitized js content using a default Gson serializer.
|
public static SanitizedContent serializeObject(Object obj)
obj - The object to render as gson.public static SanitizedContent serializeObject(com.google.gson.Gson gson, Object obj)
gson - A Gson serializer.obj - The object to render as gson.public static SanitizedContent serializeObject(com.google.gson.Gson gson, Object obj, Type type)
gson - A Gson serializer.obj - The object to render as gson.type - the type of obj.public static SanitizedContent serializeElement(com.google.gson.JsonElement element)
element - A Gson element.