Package org.json.simple
Interface Jsonable
- All Known Implementing Classes:
JsonArray
,JsonObject
public interface Jsonable
Jsonables can be serialized in java script object notation (JSON). Deserializing a String produced by a Jsonable
should represent the Jsonable in JSON form.
- Since:
- 2.0.0
-
Method Summary
-
Method Details
-
toJson
String toJson()Serialize to a JSON formatted string.- Returns:
- a string, formatted in JSON, that represents the Jsonable.
-
toJson
Serialize to a JSON formatted stream.- Parameters:
writable
- where the resulting JSON text should be sent.- Throws:
IOException
- when the writable encounters an I/O error.
-