Package | Description |
---|---|
org.apache.struts2.json |
Modifier and Type | Method and Description |
---|---|
protected JSONException |
JSONReader.buildInvalidInputException() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
JSONWriter.add(String name,
Object value,
Method method,
boolean hasData)
Add name/value pair to buffer
|
protected List |
JSONReader.array() |
protected void |
JSONWriter.array(Iterator it,
Method method)
Add array to buffer
|
protected void |
JSONWriter.array(Object object,
Method method)
Add array to buffer
|
protected void |
JSONWriter.bean(Object object)
Instrospect bean and serialize its properties
|
Object |
JSONCleaner.clean(String ognlPrefix,
Object data) |
protected Object |
JSONCleaner.cleanList(String ognlPrefix,
Object data) |
protected Object |
JSONCleaner.cleanMap(String ognlPrefix,
Object data) |
protected abstract Object |
JSONCleaner.cleanValue(String ognlName,
Object data) |
Object |
JSONPopulator.convert(Class clazz,
Type type,
Object value,
Method method) |
protected String |
JSONResult.createJSONString(javax.servlet.http.HttpServletRequest request,
Object rootObject) |
static Object |
JSONUtil.deserialize(Reader reader)
Deserializes a object from JSON
|
static Object |
JSONUtil.deserialize(String json)
Deserializes a object from JSON
|
protected void |
JSONWriter.enumeration(Enum enumeration)
Instrospect an Enum and serialize it as a name/value pair or as a bean
including all its own properties
|
RPCResponse |
JSONInterceptor.invoke(Object object,
Map data) |
protected void |
JSONWriter.map(Map map,
Method method)
Add map to buffer
|
protected Map |
JSONReader.object() |
void |
JSONPopulator.populateObject(Object object,
Map elements) |
protected void |
JSONWriter.process(Object object,
Method method)
Serialize object into json
|
protected void |
JSONWriter.processCustom(Object object,
Method method)
Serialize custom object into json
|
protected Object |
JSONReader.read() |
Object |
JSONReader.read(String string) |
static String |
JSONUtil.serialize(Object object)
Serializes an object into JSON.
|
static String |
JSONUtil.serialize(Object object,
Collection<Pattern> excludeProperties,
Collection<Pattern> includeProperties,
boolean ignoreHierarchy,
boolean excludeNullProperties)
Serializes an object into JSON, excluding any properties matching any of
the regular expressions in the given collection.
|
static String |
JSONUtil.serialize(Object object,
Collection<Pattern> excludeProperties,
Collection<Pattern> includeProperties,
boolean ignoreHierarchy,
boolean enumAsBean,
boolean excludeNullProperties,
String defaultDateFormat)
Serializes an object into JSON, excluding any properties matching any of
the regular expressions in the given collection.
|
static void |
JSONUtil.serialize(Writer writer,
Object object)
Serializes an object into JSON to the given writer.
|
static void |
JSONUtil.serialize(Writer writer,
Object object,
Collection<Pattern> excludeProperties,
Collection<Pattern> includeProperties,
boolean excludeNullProperties)
Serializes an object into JSON to the given writer, excluding any
properties matching any of the regular expressions in the given
collection.
|
protected void |
JSONWriter.value(Object object,
Method method)
Detect cyclic references
|
String |
JSONWriter.write(Object object) |
String |
JSONWriter.write(Object object,
Collection<Pattern> excludeProperties,
Collection<Pattern> includeProperties,
boolean excludeNullProperties) |
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.