public class JSONLiteral extends Object implements JSONString, Serializable
Constructor and Description |
---|
JSONLiteral(String text) |
Modifier and Type | Method and Description |
---|---|
String |
toJSONString()
The
toJSONString method allows a class to produce its own JSON serialization. |
String |
toString()
Returns the text property; this is also the value placed into the JSON string (unquoted, exactly as is).
|
public JSONLiteral(String text)
public String toString()
public String toJSONString()
JSONString
toJSONString
method allows a class to produce its own JSON serialization.toJSONString
in interface JSONString
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.