public class JSONString
extends java.lang.Object
Constructor and Description |
---|
JSONString(java.lang.String value)
Constructs a new
JSONValue instance with the given
value that represents a string in JSON format.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue()
Returns a string in JSON format.
返回JSON格式的字符串。 |
public JSONString(java.lang.String value)
JSONValue
instance with the given
value
that represents a string in JSON format.
value
- a string in JSON format. Cannot be empty string or
null
.
-JSON格式的字符串。不能为空字符串或。
java.lang.IllegalArgumentException
- when
value
is empty or
null
.