Interface IJsonConverter<T>
-
- Type Parameters:
T- the object type
- All Known Implementing Classes:
JsonConverter
public interface IJsonConverter<T>Provides a converter for buildingTsasJSONObject, and vice-versa- Author:
- Sebastien Briquet - sebfz1
-
-
Method Summary
All Methods Instance Methods Abstract 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
com.github.openjson.JSONObject toJson(T object)
Converts aTobject to aJSONObject- Parameters:
object- theTobject- Returns:
- the
JSONObject
-
toObject
T toObject(com.github.openjson.JSONObject object)
Converts aJSONObjectto a {code T} object- Parameters:
object- theJSONObject- Returns:
- the {code T} object
-
-