public interface Jsonator<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
Jsonator.EnumConversionMode
Defines handling of Java enums during Object to JSON conversion.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.base.Function<T,com.google.gson.JsonElement> |
convert() |
com.google.gson.JsonElement |
convert(T object)
Creates a
JsonElement representation of a given object. |
com.google.gson.JsonElement |
convert(T object,
Jsonator.EnumConversionMode enumConversionMode)
Creates a
JsonElement representation of a given object |
com.google.gson.JsonElement convert(T object)
JsonElement representation of a given object.
Enums are converted to their names.object - the object to be serializedcom.google.common.base.Function<T,com.google.gson.JsonElement> convert()
JsonElements representation. Enums are converted to their names.com.google.gson.JsonElement convert(T object, Jsonator.EnumConversionMode enumConversionMode)
JsonElement representation of a given objectobject - the object to be serializedenumConversionMode - defines enum handlingCopyright © 2018 Atlassian Software Systems Pty Ltd. All rights reserved.