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()
JSONStringtoJSONString method allows a class to produce its own JSON serialization.toJSONString in interface JSONString5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.