public class BeanToJsonConverter extends Object
| Constructor and Description |
|---|
BeanToJsonConverter() |
| Modifier and Type | Method and Description |
|---|---|
String |
convert(Object object)
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(Object object)
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 String convert(Object object)
object - which needs conversionpublic com.google.gson.JsonElement convertObject(Object object)
object - which needs conversionCopyright © 2015. All rights reserved.