Package org.apache.tapestry5.json
Interface JSONString
-
- All Known Implementing Classes:
JSONLiteral
public interface JSONString
An interface that allows an object to be stored as aJSONObjectorJSONArrayvalue. When printed, the value oftoJSONString()is printed without quotes or other substitution; it is the responsibility of the object to provide proper JSON output.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringtoJSONString()ThetoJSONStringmethod allows a class to produce its own JSON serialization.
-
-
-
Method Detail
-
toJSONString
java.lang.String toJSONString()
ThetoJSONStringmethod allows a class to produce its own JSON serialization.- Returns:
- A strictly syntactically correct JSON text.
-
-