org.openqa.selenium.remote
Class BeanToJsonConverter
java.lang.Object
org.openqa.selenium.remote.BeanToJsonConverter
public class BeanToJsonConverter
- extends Object
Utility class for converting between JSON and Java Objects.
Method Summary |
String |
convert(Object object)
Convert an object that may or may not be a JSONArray or JSONObject into its JSON string
representation, handling the case where it is neither in a graceful way. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanToJsonConverter
public BeanToJsonConverter()
convert
public String convert(Object object)
- Convert an object that may or may not be a JSONArray or JSONObject into its JSON string
representation, handling the case where it is neither in a graceful way.
- Parameters:
object
- which needs conversion
- Returns:
- the JSON string representation of object
Copyright © 2013. All Rights Reserved.