Class ObjectJsonator
- java.lang.Object
-
- com.atlassian.bamboo.jsonator.internal.ObjectJsonator
-
@Internal public class ObjectJsonator extends Object
Converts a Java Bean to a JSON object.The process is roughly as follows:
- Remove any AspectJ wrapping around the Bean,
- Call all getter methods on the Bean, storing to a Map
- As each getter is called, run the returned object through a jsonator specific to the object class (eg. Page)
- Each jsonator creates a JSON object implementing the Json interface
- Once all Bean properties are in the top-level JSON Object, the object is serialized recursively
-
-
Constructor Summary
Constructors Constructor Description ObjectJsonator(Jsonator.EnumConversionMode enumConversionMode)
-
-
-
Constructor Detail
-
ObjectJsonator
public ObjectJsonator(Jsonator.EnumConversionMode enumConversionMode)
-
-
Method Detail
-
convert
public com.google.gson.JsonElement convert(Object bean)
-
-