|
eXo WS :: Framework :: JSON 2.4.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.ws.frameworks.json.impl.JsonGeneratorImpl
public class JsonGeneratorImpl
| Constructor Summary | |
|---|---|
JsonGeneratorImpl()
|
|
| Method Summary | |
|---|---|
JsonValue |
createJsonArray(Collection<?> collection)
Create JSON array from specified collection. |
JsonValue |
createJsonArray(Object array)
Create JSON array from specified object. |
JsonValue |
createJsonObject(Object object)
Create JSON object from specified object. |
JsonValue |
createJsonObjectFromMap(Map<String,?> map)
Create JSON object from specified map. |
JsonValue |
createJsonObjectFromString(String s)
Create JSON object from specified string imply it is JSON object in String format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonGeneratorImpl()
| Method Detail |
|---|
public JsonValue createJsonArray(Collection<?> collection)
throws JsonException
collection - source collection
JsonException - if collection can't be transformed in JSON
representation
public JsonValue createJsonArray(Object array)
throws JsonException
array must
be array.
array - source array
JsonException - if array can't be transformed in JSON representation
public JsonValue createJsonObjectFromMap(Map<String,?> map)
throws JsonException
map - source map
JsonException - if map can't be transformed in JSON representation
public JsonValue createJsonObjectFromString(String s)
throws JsonException
s - source string
JsonException - if map can't be transformed in JSON representation
public JsonValue createJsonObject(Object object)
throws JsonException
createJsonObject in interface JsonGeneratorobject - source object
JsonException - if map can't be transformed in JSON representation
|
eXo WS :: Framework :: JSON 2.4.0-Alpha1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||