public class JSONLiteral extends java.lang.Object implements JSONString, java.io.Serializable
Constructor and Description |
---|
JSONLiteral(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toJSONString()
The
toJSONString method allows a class to produce its own JSON serialization. |
java.lang.String |
toString()
Returns the text property; this is also the value placed into the JSON string (unquoted, exactly as is).
|
public JSONLiteral(java.lang.String text)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.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.