Class JsonBean
java.lang.Object
org.eclipse.scout.rt.ui.html.json.JsonBean
- All Implemented Interfaces:
IJsonObject
Convert a java bean to a json object.
The java class may have public fields or getter/setter methods.
Valid data types are: boolean, int, long, String, byte[], array, Collection
of before mentioned types and
Map
with String as key and value as one of before mentioned types.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected IJsonObject
createJsonObject
(Object object) void
setBinaryResourceMediator
(BinaryResourceMediator binaryResourceMediator) toJson()
-
Constructor Details
-
JsonBean
-
-
Method Details
-
setBinaryResourceMediator
-
toJson
- Specified by:
toJson
in interfaceIJsonObject
- Returns:
JSONObject
,JSONArray
or a basic type
-
createJsonObject
-