Package org.opencms.json
Interface I_JSONString
-
public interface I_JSONString
TheI_JSONString
interface allows atoJSONString()
method so that a class can change the behavior ofJSONObject.toString()
,JSONArray.toString()
, andJSONWriter.value(
Object)
. ThetoJSONString
method 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 Modifier and Type Method Description java.lang.String
toJSONString()
ThetoJSONString
method allows a class to produce its own JSON serialization.
-
-
-
Method Detail
-
toJSONString
java.lang.String toJSONString()
ThetoJSONString
method allows a class to produce its own JSON serialization.- Returns:
- a strictly syntactically correct JSON text
-
-