@Deprecated
public class BeanToJsonConverter
extends java.lang.Object
| Constructor and Description |
|---|
BeanToJsonConverter()
Deprecated.
|
BeanToJsonConverter(com.google.gson.Gson gson)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
convert(java.lang.Object object)
Deprecated.
Convert an object that may or may not be a JsonElement into its JSON string
representation, handling the case where it is neither in a graceful way.
|
com.google.gson.JsonElement |
convertObject(java.lang.Object object)
Deprecated.
Convert an object that may or may not be a JsonElement into its JSON object
representation, handling the case where it is neither in a graceful way.
|
public BeanToJsonConverter()
public BeanToJsonConverter(com.google.gson.Gson gson)
public java.lang.String convert(java.lang.Object object)
object - which needs conversionpublic com.google.gson.JsonElement convertObject(java.lang.Object object)
object - which needs conversion