Package com.atlassian.bamboo.jsonator
Class DefaultJsonator
java.lang.Object
com.atlassian.bamboo.jsonator.DefaultJsonator
Converts a Java Bean to a JSON object.
Delegates to correct
ObjectJsonator
.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.bamboo.jsonator.Jsonator
Jsonator.EnumConversionMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvert()
com.google.gson.JsonElement
Creates aJsonElement
representation of a given object.com.google.gson.JsonElement
convert
(Object object, Jsonator.EnumConversionMode enumConversionMode) Creates aJsonElement
representation of a given object
-
Constructor Details
-
DefaultJsonator
public DefaultJsonator()
-
-
Method Details
-
convert
Description copied from interface:Jsonator
Creates aJsonElement
representation of a given object. Enums are converted to their names. -
convert
-
convert
public com.google.gson.JsonElement convert(Object object, Jsonator.EnumConversionMode enumConversionMode) Description copied from interface:Jsonator
Creates aJsonElement
representation of a given object
-