public class JSONPObject extends Object implements JSONSerializable
Modifier and Type | Field and Description |
---|---|
static String |
SECURITY_PREFIX |
Constructor and Description |
---|
JSONPObject() |
JSONPObject(String function) |
Modifier and Type | Method and Description |
---|---|
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
JSONSerializable
write
in interface JSONSerializable
serializer
- json seriliazerfieldName
- field namefieldType
- field typefeatures
- field featuresIOException
Copyright © 2012–2022 Alibaba Group. All rights reserved.