Class JsonConverter<T>
- java.lang.Object
-
- com.googlecode.wicket.jquery.core.converter.JsonConverter<T>
-
- Type Parameters:
T- the object type
- All Implemented Interfaces:
IJsonConverter<T>,Serializable,IClusterable
public class JsonConverter<T> extends Object implements IJsonConverter<T>, IClusterable
Provides a serializable converter for buildingTsasJSONObject, and vice-versa- Author:
- Sebastien Briquet - sebfz1
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JsonConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.github.openjson.JSONObjecttoJson(T object)Converts aTobject to aJSONObjectTtoObject(com.github.openjson.JSONObject object)Converts aJSONObjectto a {code T} object
-
-
-
Method Detail
-
toJson
public com.github.openjson.JSONObject toJson(T object)
Description copied from interface:IJsonConverterConverts aTobject to aJSONObject- Specified by:
toJsonin interfaceIJsonConverter<T>- Parameters:
object- theTobject- Returns:
- the
JSONObject
-
toObject
public T toObject(com.github.openjson.JSONObject object)
Description copied from interface:IJsonConverterConverts aJSONObjectto a {code T} object- Specified by:
toObjectin interfaceIJsonConverter<T>- Parameters:
object- theJSONObject- Returns:
- the {code T} object
-
-