public class JSONPObject extends Object implements JSONSerializable
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
SECURITY_PREFIX |
| 构造器和说明 |
|---|
JSONPObject() |
JSONPObject(String function) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addParameter(Object parameter) |
String |
getFunction() |
List<Object> |
getParameters() |
void |
setFunction(String function) |
String |
toJSONString() |
String |
toString() |
void |
write(JSONSerializer serializer,
Object fieldName,
Type fieldType,
int features)
write to json
|
public static String SECURITY_PREFIX
public JSONPObject()
public JSONPObject(String function)
public String getFunction()
public void setFunction(String function)
public void addParameter(Object parameter)
public String toJSONString()
public void write(JSONSerializer serializer, Object fieldName, Type fieldType, int features) throws IOException
JSONSerializablewrite 在接口中 JSONSerializableserializer - json seriliazerfieldName - field namefieldType - field typefeatures - field featuresIOExceptionCopyright © 2012–2020 Alibaba Group. All rights reserved.