public class MapSerializer extends SerializeFilterable implements ObjectSerializer
| Modifier and Type | Field and Description |
|---|---|
static MapSerializer |
instance |
| Constructor and Description |
|---|
MapSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
write(JSONSerializer serializer,
Object object,
Object fieldName,
Type fieldType,
int features)
fastjson invokes this call-back method during serialization when it encounters a field of the
specified type.
|
void |
write(JSONSerializer serializer,
Object object,
Object fieldName,
Type fieldType,
int features,
boolean unwrapped) |
addFilter, apply, applyName, getAfterFilters, getBeforeFilters, getContextValueFilters, getLabelFilters, getNameFilters, getPropertyFilters, getPropertyPreFilters, getValueFilterspublic static MapSerializer instance
public void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features) throws IOException
ObjectSerializerwrite in interface ObjectSerializerobject - src the object that needs to be converted to Json.fieldName - parent object field namefieldType - parent object field typefeatures - parent object field serializer featuresIOExceptionpublic void write(JSONSerializer serializer, Object object, Object fieldName, Type fieldType, int features, boolean unwrapped) throws IOException
IOExceptionCopyright © 2012–2022 Alibaba Group. All rights reserved.