Package org.apache.sling.commons.json
Interface JSONString
-
- All Known Implementing Classes:
DialogMode,EditAction
@Deprecated public interface JSONString
Deprecated.TheJSONStringinterface allows atoJSONString()method so that a class can change the behavior ofJSONObject.toString(),JSONArray.toString(), andJSONWriter.value(Object). ThetoJSONStringmethod will be used instead of the default behavior of using the Object'stoString()method and quoting the result.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description StringtoJSONString()Deprecated.ThetoJSONStringmethod allows a class to produce its own JSON serialization.
-
-
-
Method Detail
-
toJSONString
String toJSONString()
Deprecated.ThetoJSONStringmethod allows a class to produce its own JSON serialization.- Returns:
- A strictly syntactically correct JSON text.
-
-