-
- All Known Subinterfaces:
JsonArrayBase<JVB>,JsonArrayCore<JVC>,JsonObjectBase<JVB>,JsonObjectCore<JVC>,JsonValueBase<JVB>,JsonValueCore<JVC>
- All Known Implementing Classes:
GsonJsonArray,GsonJsonObject,GsonJsonValue,JacksonJsonArray,JacksonJsonObject,JacksonJsonValue
public interface JsonableJsonableallows the implementing class to be converted into a JSON string.- Author:
- Wei-Ming Wu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringtoJson()Returns a JSON string which represents this object.
-
-
-
Method Detail
-
toJson
String toJson()
Returns a JSON string which represents this object.- Returns:
- a JSON string
-
-