org.openqa.selenium.remote
Class BeanToJsonConverter

java.lang.Object
  extended by org.openqa.selenium.remote.BeanToJsonConverter

public class BeanToJsonConverter
extends java.lang.Object

Utility class for converting between JSON and Java Objects.


Constructor Summary
BeanToJsonConverter()
           
 
Method Summary
 java.lang.String convert(java.lang.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
 

Constructor Detail

BeanToJsonConverter

public BeanToJsonConverter()
Method Detail

convert

public java.lang.String convert(java.lang.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 © 2011. All Rights Reserved.