public class JSONPObject extends Object implements JSONSerializable
| 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 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 in interface JSONSerializableserializer - json seriliazerfieldName - field namefieldType - field typefeatures - field featuresIOExceptionCopyright © 2012–2017 Alibaba Group. All rights reserved.